Partial Submit problem

I have this view where i can execute the query by "Codigo" or by "Afiliado":
http://img52.imageshack.us/img52/484/consultav.jpg
The problem is when I write a value for "Codigo" or "Afiliado" and leave the cursor from one of the input text and then press the commandButton. The table is not refreshing:
http://img821.imageshack.us/img821/476/consulta2.jpg
But if i write a value for "Codigo" or "Afiliado" and press the commandbutton without leaving the cursor from one of the input text to execute the query, then the table shows the results.
Code for my jspx:
<af:panelBox id="pbFil" text="Criterios de Búsqueda" showDisclosure="false">
<h:panelGrid id="pgFil" columns="3">
<af:inputText value="#{bindings.PV_GRUPFAM.inputValue}"
binding="#{pageFlowScope.Afiliados.itCodigo}"
label="#{bindings.PV_GRUPFAM.hints.label}"
required="#{bindings.PV_GRUPFAM.hints.mandatory}"
columns="#{bindings.PV_GRUPFAM.hints.displayWidth}"
partialTriggers="itAfiliado" autoSubmit="true"
maximumLength="#{bindings.PV_GRUPFAM.hints.precision}"
valueChangeListener="#{pageFlowScope.Afiliados.actualizarCodigo}"
shortDesc="#{bindings.PV_GRUPFAM.hints.tooltip}" id="itCodigo">
<f:validator binding="#{bindings.PV_GRUPFAM.validator}"/>
</af:inputText>
<af:inputText value="#{bindings.PV_NOMBRE.inputValue}"
binding="#{pageFlowScope.Afiliados.itAfiliado}"
label="#{bindings.PV_NOMBRE.hints.label}"
required="#{bindings.PV_NOMBRE.hints.mandatory}"
columns="#{bindings.PV_NOMBRE.hints.displayWidth}"
maximumLength="#{bindings.PV_NOMBRE.hints.precision}"
partialTriggers="itCodigo" autoSubmit="true"
valueChangeListener="#{pageFlowScope.Afiliados.setearAfiliado}"
shortDesc="#{bindings.PV_NOMBRE.hints.tooltip}" id="itAfiliado">
<f:validator binding="#{bindings.PV_NOMBRE.validator}"/>
</af:inputText>
<af:commandButton actionListener="#{bindings.ExecuteAfiliados.execute}"
text="Consultar" id="cbBus" partialSubmit="true"
disabled="#{!bindings.ExecuteAfiliados.enabled}">
<af:setPropertyListener from="true"
to="#{pageFlowScope.Afiliados.showConsulta}"
type="action"/>
</af:commandButton>
</h:panelGrid>
</af:panelBox>
<af:panelBox id="pbConsulta" inlineStyle="border-style:none;"
partialTriggers="itAfiliado itCodigo cbBus" styleClass="AFStretchWidth"
showDisclosure="false" visible="#{pageFlowScope.Afiliados.showConsulta}"
text="#{pageFlowScope.Afiliados.titulo}">
<af:table value="#{bindings.VOAfiliadosAsesor.rangeSet}"
disableColumnReordering="true" var="row"
summary="Listado Afiliados"
rows="#{bindings.VOAfiliadosAsesor.rangeSize}"
emptyText="#{bindings.VOAfiliadosAsesor.viewable ? 'No se encontraron resultados para la búsqueda seleccionada.' : 'Acceso Denegado.'}"
fetchSize="#{bindings.VOAfiliadosAsesor.rangeSize}"
rowBandingInterval="0" id="tafil"
binding="#{pageFlowScope.Afiliados.tafil}"
styleClass="AFStretchWidth" columnStretching="column:cApell"
partialTriggers="::sfP:cb1 ::sfP:cb2 ::sfP:it6 ::sfP:cb3 ::sfP:cb4 ::sfP:cb5 ::cbBus">
<af:column id="cSec" rowHeader="unstyled"
headerText="#{bindings.VOAfiliadosAsesor.hints.Nro.label}"
sortable="false" inlineStyle="border-color:#8c8e95;"
width="29" align="center">
<af:outputText value="#{row.Nro}" id="otSec"/>
</af:column>
Code for my pageDef:
<iterator Binds="VOAfiliadosAsesor" RangeSize="20" DataControl="AfiliadosModuleDataControl"
id="VOAfiliadosAsesorIterator"/>
<variableIterator id="variables">
<variableUsage DataControl="AfiliadosModuleDataControl" Binds="VOAfiliadosAsesor.variablesMap.PV_NOMBRE"
Name="ExecuteWithParams_PV_NOMBRE" IsQueriable="false"/>
<variableUsage DataControl="AfiliadosModuleDataControl" Binds="VOAfiliadosAsesor.variablesMap.PV_GRUPFAM"
Name="ExecuteWithParams_PV_GRUPFAM" IsQueriable="false"/>
<variableUsage DataControl="AfiliadosModuleDataControl" Binds="VOAfiliadosAsesor.variablesMap.PV_ASECOD"
Name="ExecuteWithParams_PV_ASECOD" IsQueriable="false"/>
</variableIterator>
<action IterBinding="VOAfiliadosAsesorIterator" id="ExecuteAfiliados" RequiresUpdateModel="true"
Action="executeWithParams">
<NamedData NDName="PV_CIA" NDType="java.lang.String" NDValue="#{UsuarioBean.compania}"/>
<NamedData NDName="PV_SUC" NDType="java.lang.String" NDValue="#{UsuarioBean.sucursal}"/>
<NamedData NDName="PV_ASECOD" NDType="java.lang.String" NDValue="#{UsuarioBean.codigo}"/>
<NamedData NDName="PV_NOMBRE" NDType="java.lang.String" NDValue="${bindings.ExecuteWithParams_PV_NOMBRE}"/>
<NamedData NDName="PV_GRUPFAM" NDType="java.lang.String"
NDValue="${bindings.ExecuteWithParams_PV_GRUPFAM}"/>
</action>
<attributeValues IterBinding="variables" id="PV_ASECOD">
<AttrNames>
<Item Value="ExecuteWithParams_PV_ASECOD"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="variables" id="PV_GRUPFAM">
<AttrNames>
<Item Value="ExecuteWithParams_PV_GRUPFAM"/>
</AttrNames>
</attributeValues>
<attributeValues IterBinding="variables" id="PV_NOMBRE">
<AttrNames>
<Item Value="ExecuteWithParams_PV_NOMBRE"/>
</AttrNames>
</attributeValues>
.

Hi,
afaik.. fileDownloadActionListener does a post to server..even if you do partialSubmit to command component
After downloading pdf when i click anyother button i get an alert saying...DO YOU WANT TO RESEND THE INFORMATION TO SERVER?I guess you might not have enabled partialSubmit on the other button..
Try these options, in your web.xml set following in context initialization parameters section
org.apache.myfaces.trinidad.PPR_OPTIMIZATION                  on
oracle.adf.view.rich.pprNavigation.OPTIONS                          onRegards.

Similar Messages

  • Partial Submit problem with file download listener

    Hi All,
    I am exporting a table to PDF in my jspx page. For this i have written below code:-
    <af:commandImageLink id="cil6" icon="pdf.png"
    partialSubmit="true"
    >
    <af:fileDownloadActionListener contentType="application/pdf"
    filename="SumData"
    method="#{Sum.exportToPDF}"/>
    </af:commandImageLink>
    It is saving the pdf at a desired location. But as i have made my COMMAND LINK is not executing partial submit behaviour inspite that i have made it partialSubmit="true" .
    After downloading pdf when i click anyother button i get an alert saying...DO YOU WANT TO RESEND THE INFORMATION TO SERVER?
    I don't want this behaviour but i am unable to debug this. Please help.

    Hi,
    afaik.. fileDownloadActionListener does a post to server..even if you do partialSubmit to command component
    After downloading pdf when i click anyother button i get an alert saying...DO YOU WANT TO RESEND THE INFORMATION TO SERVER?I guess you might not have enabled partialSubmit on the other button..
    Try these options, in your web.xml set following in context initialization parameters section
    org.apache.myfaces.trinidad.PPR_OPTIMIZATION                  on
    oracle.adf.view.rich.pprNavigation.OPTIONS                          onRegards.

  • Partial submit in a jsf fragment is not working

    Hi,
    i have a jsf page that is hosting a jsf fragment (using workflow), inside the jsf fragment i have a button that has partial submit = true, and an output text that has partial triggers pointing to the button.
    the button on the fragment page has a "set action listener" that update a variable in a managed bean.
    the output text on the fragment page is displaying the content of that variable (which the button is updating).
    the problem is that partial submit is not working and whenever the button is clicked and the value of the variable inside the managed bean is changed , it is not reflected in the output text.
    note that if you try to use this example in a normal JSF page it will work, so does anybody knows what is wrong.
    i'm using Jdeveloper 11.1.1.2
    ************************** source code of the jsf fragment page *********************************
    <?xml version='1.0' encoding='windows-1252'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.1"
    xmlns:af="http://xmlns.oracle.com/adf/faces/rich"
    xmlns:f="http://java.sun.com/jsf/core">
    <af:commandButton text="commandButton 1" id="cb1" partialSubmit="true">
    <af:setActionListener from="#{not DepartmentInquiryBean.getterCriteriaPanelDisplayInd}"
    to="#{DepartmentInquiryBean.setterCriteriaPanelDisplayInd}"/>
    </af:commandButton>
    <af:outputText value="#{DepartmentInquiryBean.getterCriteriaPanelDisplayInd}" id="ot1"
    partialTriggers="cb1"/>
    </jsp:root>
    ************************** source code of the managed bean ************************************
    package Merch.Model;
    public class DepartmentInquiry {
    private boolean CriteriaPanelDisplayInd = true;
    public DepartmentInquiry() {
    public void setSetterCriteriaPanelDisplayInd(boolean p_CriteriaPanelDisplayInd) { 
    CriteriaPanelDisplayInd = p_CriteriaPanelDisplayInd;
    public boolean getGetterCriteriaPanelDisplayInd() {
    return CriteriaPanelDisplayInd;
    ********************************************************************************************

    Yes, try appending the region's id to the component inside that region.
    i.e.
    <af:outputText value="#{DepartmentInquiryBean.getterCriteriaPanelDisplayInd}" id="ot1"
    partialTriggers="r1:cb1"/>^ assuming 'r1' is your region's id.
    If your fragment is not inside a region...maybe try doing so.
    Also, see here:
    Referencing a component on a page fragment inside an <af:region>.
    Best of luck.
    Matthew.
    Edited by: Matthew Carrigy on 27/11/2009 10:42

  • Using clientAttributes during partial submit

    Hello All,
    I am using Jdeveloper 11g for an ADF Project. What I am trying is, to show a popup on click of a button based on a business condition - Looked simple, but....
    What I've been trying to do so far is,
    1. On my jspx page I have an af:popup which contains an af:dialog- I am invoking this popup by a java script method where i call popup.show().
    2. On click of a button(partial submit is true on this button), in my managed bean, I check my business scenario and decide if the popup should be shown or not. I have this flag stored in say a session variable x.
    3. This value in x, I am trying to pass to my javascript using an #{EL} expression in a clientAttribute.
    4. I have a client listner which invokes the correct javascript method which decides if the af:popup should be shown or not based on the value in x, that is passed to it from the client attribute.
    The problem is, the #{EL} expression I am using to get the value is not getting executed on every click of the button. I believe this is because the command button has partial submit set to true. I tried putting a sysout on the getter method being used in the EL , but even that is not being printed. Since the business condition is being executed on click of the button, the value of the client attribute must be refreshed, which is not happening correctly as of now.
    I referred to [http://www.oracle.com/technology/products/jdev/tips/fnimphius/passingAdditionalArgumentsToClientListener.htm|http://www.oracle.com/technology/products/jdev/tips/fnimphius/passingAdditionalArgumentsToClientListener.html] l and this is exactly how I am passing the value to my EL.
    What am I doing wrong, Is there a better way to do it?
    Julian

    Hi,
    if you check the condition in a managed bean, you can launch the dialog from here as well
    ExtendedRenderKitService service = Service.getRenderKitService(facesContext, ExtendedRenderKitService.class);
    service.addScript(facesContext, "alert('foo');");
    Just change the alert to a JavaScript function call to launch the dialog. The function call would be something like
    function launchMyDialog(){
    //find the popup
    //show it
    Frank

  • Partial Submit

    Hi,
    I want to do form partial submit without using any command link or button. i want to refresh 1 field. how to do that? I'm using Jdeveloper 10.1.3.1.0 ADF BC.
    Thanks and Regards,
    Sudha.

    Hi,
    Actually I found why it is appearing this error. If any default values are there on the form then this error is appearing while setting autosubmit and immediate properties to true for the other field.
    for example I was showing saleId from the sequence file
    protected void create(AttributeList autoSeq){
    super.create(autoSeq);
    SequenceImpl seqSaleId = new SequenceImpl("INVMAST_TEMP_SALEID_SEQ",getDBTransaction());
    SequenceImpl seqRefNo = new SequenceImpl
    setSaleId(seqSaleId.getSequenceNumber().toString());
    and I'm calculating the Total value, so, while showing the result in the Total field, i was setting autosubmit on Qty and Price fields and setting partial trigger on Total field. Then I'm getting this error.
    How to come out of this problem?
    Thanks and Regards,
    Sudha.

  • Partial submit causing java.lang.ArrayIndexOutOfBoundsException?

    I am using Jdeveloper 11G (11.1.1.2.0).
    I am making a web application with JSF fragments, viewing a select one choice list and a table.
    I have two view objects and a view link linking them together.
    (Using HR database for example)
    ViewObject1: Select * from departments
    ViewObject2: Select * from employees
    ViewLink: :Bind_DepartmentId = DEPARTMENT_ID (for both source and destination)
    I have created one jspx page, a jsf page fragment and a bounded taskflow with the page fragment. Bounded taskflow is dropped on the jspx page as a region. In the fragment I take departments generated from the view link and drop it as a select one choice together with a previous and a next button. Then I drag the employee that is a sub-element of the department and drop it as a table. I set the select one choice to autosubmit = true. For the next and prev button i have tried both partial submit = true and partial submit= false. For the table I set the select one choice as partial trigger.
    If I use the select one choice drop down list I can select department and view the employees, but if I use the navigation buttons I get the following error:
    <Utils><buildFacesMessage> ADF: Adding the following JSF error message: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
    oracle.jbo.JboException: JBO-29000: Det oppstod et uventet unntak: java.lang.ArrayIndexOutOfBoundsException, mld=0
         at oracle.jbo.server.ViewRowSetIteratorImpl.first(ViewRowSetIteratorImpl.java:1574)
         at oracle.jbo.server.ViewRowSetImpl.first(ViewRowSetImpl.java:3384)
         at oracle.jbo.server.ViewObjectImpl.first(ViewObjectImpl.java:8836)
         at oracle.adf.model.binding.DCIteratorBinding.setupRSIstate(DCIteratorBinding.java:767)
         at oracle.adf.model.binding.DCIteratorBinding.refreshControl(DCIteratorBinding.java:667)
         at oracle.jbo.uicli.binding.JUIteratorBinding.refreshControl(JUIteratorBinding.java:475)
         at oracle.adf.model.binding.DCIteratorBinding.rangeRefreshed(DCIteratorBinding.java:873)
         at oracle.jbo.common.RowSetHelper.fireRangeRefreshed(RowSetHelper.java:175)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyRangeRefreshed(ViewRowSetIteratorImpl.java:3574)
         at oracle.jbo.server.ViewRowSetIteratorImpl.ensureRefreshed(ViewRowSetIteratorImpl.java:2791)
         at oracle.jbo.server.ViewRowSetIteratorImpl.refresh(ViewRowSetIteratorImpl.java:3011)
         at oracle.jbo.server.ViewRowSetImpl.notifyRefresh(ViewRowSetImpl.java:2635)
         at oracle.jbo.server.ViewRowSetImpl.refreshRowSet(ViewRowSetImpl.java:6733)
         at oracle.jbo.server.ViewRowSetIteratorImpl.notifyDetailRowSets(ViewRowSetIteratorImpl.java:3508)
    --- And more -----
    If I do the same, but only with a jspx page and set parial submit for the buttons false its works.
    Anyone knows what's wrong?
    -Thomas
    Project example of my problem: http://heim.ifi.uio.no/tahannes/HRexample.zip (Run start in adfc-config)
    Edited by: Thomas H on Feb 18, 2010 10:58 AM
    Edited by: Thomas H on Feb 18, 2010 12:33 PM

    I found a solution to my problem. Since I have different view objects to update when I choose a value from the navigation list I removed the view link and created a valueChangeListener. This listener execute the query with parameters based on the value from the navigation list for each view object.
    public void UpdateAarUkeIterators(ValueChangeEvent valueChangeEvent) {
    BindingContainer bindings = getBindings();
    int newIndex = Integer.parseInt(valueChangeEvent.getNewValue().toString());
    DCIteratorBinding iter = (DCIteratorBinding) bindings.get("VoAarUke1Iterator");
    String periodenr = iter.getRowAtRangeIndex(newIndex).getAttribute("Periodenr").toString();
    /* ExecuteWithParams read this parameter, not sure if this is the best way to do it */
    FacesContext.getCurrentInstance().getExternalContext().getSessionMap().put("periodenr", ""+periodenr);
    OperationBinding operationBinding;
    bindings.getOperationBinding("ExecuteWithParams");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams1");
    operationBinding.execute();
    operationBinding = bindings.getOperationBinding("ExecuteWithParams2");
    operationBinding.execute();
    Not sure if this is the best way to do it, but it works.

  • Partial triggers not Fired on partial submit when invalidate component

    Can somebody tell me why Partial triggers are not Fired on partial submit when invalidate component in the validator. Neither error message next to the component is displayed.
    Does somebody has an idea how can i solve this?
    Thank you very much in advance

    Hi, that is a test case which i have promised you:
    The .jspx page contains two fields , one of which has autosubmit = true; You will see, that when invalidate test field 2 partial triigers on field 1 are not fired neither faces message next
    to the field 2 appears.
    If you add programatically Field 1 and Field 2 partial trigerrs this solve the problem.
    I'm waiting for your response.
    Regards,
    Krasi
    <?xml version='1.0' encoding='windows-1251'?>
    <jsp:root xmlns:jsp="http://java.sun.com/JSP/Page" version="2.0"
    xmlns:h="http://java.sun.com/jsf/html"
    xmlns:f="http://java.sun.com/jsf/core"
    xmlns:af="http://xmlns.oracle.com/adf/faces"
    xmlns:afh="http://xmlns.oracle.com/adf/faces/html">
    <jsp:output omit-xml-declaration="true" doctype-root-element="HTML"
    doctype-system="http://www.w3.org/TR/html4/loose.dtd"
    doctype-public="-//W3C//DTD HTML 4.01 Transitional//EN"/>
    <jsp:directive.page contentType="text/html;charset=windows-1251"/>
    <f:view>
    <afh:html>
    <afh:head>
    <meta http-equiv="Content-Type"
    content="text/html; charset=windows-1251"/>
    <title>pprTest</title>
    </afh:head>
    <afh:body>
    <af:form>
    <af:panelLabelAndMessage label="Test Field 1">
    <af:outputText binding="#{testBean.testField1Comp}"
    partialTriggers="testField2"/>
    </af:panelLabelAndMessage>
    <af:inputText label="Test Field 2"
    id="testField2"
    autoSubmit="true"
    binding="#{testBean.testField2Comp}"
    partialTriggers="testField2"
    validator="#{testBean.testField2_validator}" />
    </af:form>
    </afh:body>
    </afh:html>
    </f:view>
    </jsp:root>
    import javax.faces.application.FacesMessage;
    import javax.faces.component.UIComponent;
    import javax.faces.context.FacesContext;
    import oracle.adf.view.faces.component.UIXInput;
    import oracle.adf.view.faces.component.core.input.CoreInputText;
    import oracle.adf.view.faces.component.core.output.CoreOutputText;
    import javax.faces.application.FacesMessage.Severity;
    public class TestBean {
    private CoreOutputText testField1Comp;
    private CoreInputText testField2Comp;
    public TestBean() {
    public void testField2_validator(FacesContext facesContext,
    UIComponent uiComponent, Object value) {
    // If input equals "invalidate" set value of the
    // testField1Comp on "Component is invalid"
    // Invalidate input and add an error message
    if (((String)value).equals("invalidate")) {
    testField1Comp.setValue("Component is invalid");
    invalidateInput( (UIXInput)uiComponent,"TestField2","Test Field 2 is invalid!");
    // If input not equals "invalidate" set value of the
    // the testField1Comp on "Component is valid"
    else{
    testField1Comp.setValue("Component is valid");
    //Dynamic adding of the partial targets , solves the problem
    // with losing of partial triggers
    //AdfFacesContext.getCurrentInstance().addPartialTarget(testField1Comp);
    //AdfFacesContext.getCurrentInstance().addPartialTarget(uiComponent);
    public void setTestField1Comp(CoreOutputText testField1Comp) {
    this.testField1Comp = testField1Comp;
    public CoreOutputText getTestField1Comp() {
    return testField1Comp;
    public void setTestField2Comp(CoreInputText testField2Comp) {
    this.testField2Comp = testField2Comp;
    public CoreInputText getTestField2Comp() {
    return testField2Comp;
    public static void invalidateInput(UIComponent uiComp,String compName, String message) {
    showErrorMessage(uiComp , message);
    if (uiComp instanceof UIXInput){
    ((UIXInput) uiComp).setValid(false);
    public static void showErrorMessage(UIComponent component, String message) {
    showMessage(component, message, FacesMessage.SEVERITY_ERROR);
    private static void showMessage(UIComponent component, String message, Severity severity) {
    String compId = component.getId();
    FacesContext ctx = JSFUtils.getFacesContext();
    FacesMessage facesMessage = new FacesMessage(
    severity, component.getId() , message);
    ctx.addMessage(compId,facesMessage );
    }

  • Partial Submit type something for InputDate Component?

    Hi,
    I am using Build JDEVADF_11.1.1.3.PS2_GENERIC_100408.2356.5660. I have an ADF table inside my page fragement. One of the column inside table is of InputDate type. Whenever I am clicking input date my complete page fragment gets initialised or refreshed. I don,t want that because I have a method which is getting executed because of it again and again which is giving problem to me. Is their any Partial Submit type anything for Input Date component to resolve this.
    Regards,
    Vik

    As a tree stamps it's children (nodes) and each node can be different, a tree as such don't partial submit. The node content however can issue a partial submit.
    You can also add an other component as partial trigger target in the node selection listener using
    // PPR refresh a jsf component
    AdfFacesContext.getCurrentInstance().addPartialTarget(UIComponent);Timo

  • CommandButton Partial submit not working within table

    I have two buttons that basically update a table I have printed out. The code is:
    <h:outputText value="FinCen Case Number"/>               
    <h:panelGrid columns="3">
    <af:inputText value="#{caseCommonInfoAction.finCenToAdd}" partialTriggers="addFinCenButton"/>
    <af:commandButton text="Add >>>" id="addFinCenButton" partialSubmit="true" action="#{caseCommonInfoAction.processSaveNewFinCenNumber}"/>
    <af:table var="finCenCaseNumber" banding="column"               value="#{caseCommonInfoAction.finCenCaseList}" partialTriggers="addFinCenButton deleteFinCenButton">
    <af:column>
    <h:outputText value="#{finCenCaseNumber.fincenCaseNumber}"/>
    </af:column>
    <af:column>
    <af:commandButton text="Delete" id="deleteFinCenButton" partialSubmit="true" action="#{caseCommonInfoAction.processDeleteFinCenNumber}">
    <f:param name="finCenToDelete" value="#{finCenCaseNumber.fincenCaseNumber}"/>
    </af:commandButton>
    </af:column>                                                  
    </af:table>
    </h:panelGrid>
    I apologize for the formatting, but copying over as well as hard coding the spaces still makes this forum ignore them. My real problem is that the table does not update when I press the "Delete" button. I did, however, tell the table to use deleteButton's id in partialTriggers.
    At first I thought partialTriggers="addFinCenButton deleteFinCenButton"> was incorrect, so I changed it to partialTriggers="deleteFinCenButton"> and it still doesn't work. The actions I have listed are working correctly (I can hit a save button I have and then refresh the page and the item I wanted to delete is actually deleted).
    Anyone have any thoughts?

    User,
    I think this is a common problem, probably a bug. It works fine if you manually enque the appropriate partial submit stuff.
    See this thread: Re: ADF Faces: PPR and Dialog framework in particular Ric Smith's reply. Poke around on Ric's blog for some code like this:
    AdfFacesContext afContext = AdfFacesContext.getCurrentInstance();
            afContext.addPartialTarget(handler.getTable1());
            afContext.partialUpdateNotify(commandButton11);hope this helps,
    John

  • Checkbox submit problem.

    Hi,
    Im working on adf faces with jdev 10.1.3 .
    There is a checkbox which shud render a button based on its value. If i use onclick="submit()" it works correctly, but I dont want it to submit the page fully. Is there some other way to do it . I tried autoSubmit=true but then the buttons are not rendered properly.
    <af:selectBooleanCheckbox onclick="submit()"
    text=" Business Events"
    valueChangeListener="#{PropertyBean.tableSelected}"/>
    <af:table emptyText="No items were found" rows="5"
    value="#{PropertyBean.collectionModel}" var="event"
    width="75%" >
    <f:facet name="actions">
    <af:panelButtonBar>
    <af:commandButton text="Add Event"
    rendered="#{not PropertyBean.clickedBE}"
    disabled="true"/>
    <af:commandButton text="Add Event"
    actionListener="#{PropertyBean.addEvent}"
    partialSubmit="true"
    rendered="#{PropertyBean.clickedBE}"/>
    </af:panelButtonBar>
    </f:facet>
    clickedBE is set to the corresponding value of the checkbox in the value change event tableSelected(). But onclick will submit the whole page, so the focus will go to the top of the page. I want the focus to remain on this event table itself, something like a partial submit for buttons. I tried with autoSubmit="true", that wasnt even working properly,as in the buttons werent gettin rendered even.
    Please if somebody could come up with some method to implement this.
    Thanks in advance.

    You need to surround the button with a panel group and set the partial page rendering on that panel.
    The following works for me:
            <h:form binding="#{backing_untitled8.form1}" id="form1">
              <af:selectBooleanCheckbox text="selectBooleanCheckbox 1"
                                        label="Label 1"
                                        binding="#{backing_untitled8.selectBooleanCheckbox1}"
                                        id="selectBooleanCheckbox1"
                                        autoSubmit="true"/>
              <af:panelGroup binding="#{backing_untitled8.panelGroup1}"
                             id="panelGroup1"
                             partialTriggers="selectBooleanCheckbox1">
                <af:commandButton text="commandButton 1"
                                  binding="#{backing_untitled8.commandButton1}"
                                  id="commandButton1"
                                  rendered="#{backing_untitled8.selectBooleanCheckbox1.value}"
                                  partialTriggers="selectBooleanCheckbox1"/>
              </af:panelGroup>
            </h:form>

  • Windows 8/8.1 Partial Print Problems with Networked Inkjet Printers (Envy, Officejet and Deskjet)

    There are a lot of threads being posted about this problems with printing on the following these devices when they are connected in a Network Environment (Wireless or Wired)
    HP Officejet Pro 6830
    HP Officejet 6800
    HP Officejet Pro 6230
    HP Officejet 6220
    HP Officejet Pro 8610 e-All-in-One Printer series
    HP Officejet Pro 8620 e-All-in-One Printer series
    HP Officejet Pro 8630 e-All-in-One Printer series
    HP Officejet Pro 8640 e-All-in-One
    HP Officejet Pro 8650 e-All-in-One
    HP Officejet Pro 8660 e-All-in-One
    HP Officejet 7610 Wide Format ePrinter
    HP Officejet Pro 3610 Black and White e-All-in-One
    HP Officejet Pro 3620 Black and White e-All-in-One
    HP Officejet Pro 251dw Printer series
    HP Officejet Pro 276dw MFP series
    HP Officejet 7110 Wide format ePrinter
    HP Officejet Pro 501dw Printer
    HP Officejet Pro 401dw Printer
    HP Officejet Pro X451dw Printer
    HP Officejet Pro X576dw MFP
    HP Officejet Pro X476dn MFP
    HP Officejet Pro 451dn/551dn MFP
    HP Officejet Pro 451dw/551dw MFP
    HP Officejet 4630 e-All-in-One
    HP Deskjet Ink Advantage 4640 e-All-in-One Printer series
    HP Deskjet 2540 All-in-One Printer
    HP Deskjet Ink Advantage 2540 All-in-One Printer
    HP ENVY 5530 e-All-in-One Printer
    HP Deskjet Ink Advantage 4510 e-All-in-One Printer
    HP ENVY 4500 e-All-in-One Printer
    HP Deskjet Ink Advantage 3540 e-All-in-One Printer
    HP posted a workaround for this problem while they were working with Microsoft to get the root cause of the problem, many customers commented that the workaround helped them out and they were able to print. This workaround was not easy to use as the customer needed to add another printer manually and changed drivers.
    We can now announce that the problem has been fixed, the problem involved a Microsoft Network component that HP was using to talk to and track the printers on the network. This fix is being rolled out by Microsoft via Windows Update and anyone who has Windows Update enabled and set to automatically install updates should have already received this update. For those that do not have Windows Update setup to automatically install fixes the fix is available now and should be installed.
    The details of this fix and a manual method of installing it can be found here.
    http://support.microsoft.com/kb/3000461
    This fix is only designed for users that are using there printer on a Network (Wireless or Wired) and will not fix partial printing problems encountered with USB connections.
    There are many threads in HPs forums about this issue (below are links to a few of them)
    http://h30434.www3.hp.com/t5/Printing-Issues-Troubleshooting/Missing-partial-prints-amp-Printer-Offl...
    http://h30434.www3.hp.com/t5/Printing-Issues-Troubleshooting/HP-Envy-4500-cancels-job-in-the-middle-...
    http://h30434.www3.hp.com/t5/Other-Printing-Questions/Only-prints-half-a-page/m-p/4054888
    JonW
    I work for HP

    @tenkeypro 
    First, I would suggest you uninstall the exsisting driver and reinstall following one of these documents to see if it will clear this error message:
    Install HP print and scan software on a Windows 8 computer (32-bit and 64-bit)
    Universal Print Driver (no scan)
    Driver support included in Windows 8 / Windows 8.1 or in Windows Update
    I am an HP employee.
    Say Thanks by clicking the Kudos Star in the post that helped you.
    Please mark the post that solves your problem as Accepted Solution

  • Will trinidad components partial triggered on partial submit

    Hi All,
    I have a quick question
    is there any issue with with partial submit vs trinidad components?
    i experienced that my components under trinidad layout are not partialtriggred on partial submit
    i am using jdev 11.1.1.5

    Thanks Frank,
    we have pojo datacontrols in my application,database transation is hanlded hibernate and open JPA.
    i have two pages each page has jsff and two diffrent pjojo datacontrols on each jsff.
    now when i update the data from the firstpage, and navigate to the second page(jsff which used the other pojo datacontrol) is refreshing (getting comited records from db) only on when the page is first accssed,supose i navigate back to first page and update some records now i navigate to second page,updated records are not disaplying,if i reopen the url in new browser window then db changes are coming.
    I noticed that pojo datacontrol is refresd only on first access.
    i tried iterator refresh property in pagedef file,but no luck
    can you kindly tell me what needs to be done?

  • Hourglass on partial submit

    Hello,
    When I do a partial submit of a page, I get an hourglass for the cursor in un-used areas (no fields) of the page. It does not go away until I close the page. What typically would cause this to happen? I do have some partial triggers set up. I stepped through the debugger and found nothing pecualiar being aborted or causing errors.
    I am using JDeveloper 10.1.3.3.

    On the Oracle on-line help I found:
    The firstClickPassed attribute specifies a Boolean value for determining whether the first click is allowed to pass. By default this attribute is false. This means when a PPR request or event occurs, ADF Faces blocks all subsequent user input until the event completes. For example, if the user enters text in an inputText that fires a PPR request and then immediately clicks a submit button, two events are triggered—an onchange event followed by an onclick. The onchange event will trigger the client action that starts PPR blocking immediately; the onclick will get consumed by the blocking code and no submit will occur. If you want the submit event to occur, set the firstClickPassed attribute to true to allow the first click to go through.
    I set the firstClickPassed on the body tag to true and it still forces the user to click a button on the page twice to get the action to fire. Anybody with any ideas?

  • Partial submit question, only partial refresh...

    I all,
    I use a partial submit on a page on a CommandLink.
    I have also a PartialTrigger for the part I want to refresh.
    It seems that when I click, the link, the entire page is submited and only the PartialTriggered part is refreshed.
    Is it possible to avoid the entire page to submit on have only the partialRefresh because, the only data which has changed is changed with a setActionListener enclaused in the CommandLink.
    Thanks.
    Michael

    Hi,
    no, PPR does not refresh independent of a submit
    Frank

  • ADF button submits the whole page even on partial submit=true

    my jdev version 11.1.1.5.0
    I hav a jspx page with two input boxes and three select one choice and a clear button
    on clicking the clear button it subimts the whole page and fetches value for select one choice mapped to manage bean everytime even on putting partial subimt=true

    Two years ago I was confused by the same behavior, so I researched the problem to come eventually to the conclusion that everything had been fine and in accordance to the documentation.
    In brief, it is correct behavior a button to submit the whole page even if the button is configured as partialSubmit="true". Please, refer to these articles in the documentation for clarification:
    Using the JSF Lifecycle with ADF Faces - 11g Release 1 (11.1.1.7.0) ("4.3 Using the Opimized Lifecycle")
    Handling Events - 11g Release 1 (11.1.1.7.0) (See topic "5.1.1 Events and PPR" only)
    It is seen from the second article that command components (e.g. a command button, event type "action") are not event roots, which means that the whole enclosing page "boundary" is submitted. If the button is a part of a subform (<af:subform>), a region, a popup or a PanelCollection, then the boundary is the corresponding subform, region, popup or PanelCollection, so only this part of the page is submitted and processed by the optimized lifecycle. However, if the button is not part of such component, then the whole page is submitted and processed by the lifecycle (even if the button is configured as partialSubmit="true"), but only the partial targets of the button will be refreshed on the screen (if the button is configured as partialSubmit="true").
    If you want your button to submit only a part of the page, then the easiest correct way to do that is to surround that part with <af:subform>.
    Dimitar
    P.S. Input and selection components have different PPR behavior from command components. It is seen from the second article above that all the input and selection components are event roots (in contrast to command components!) (see event type "valueChange"), so if some input or selection component is configured as autoSubmit="true", it will not submit the whole page but only itself and the components configured as partial targets of it.

Maybe you are looking for