ADF BC: createInsert and partial trigger

I notice when i add a createInsert operation to my page and then the corresponding table, JDev will add a partialTrigger to the button.
I don't see why.
When i press the createInsert, the table should have the partialTrigger, not the createInsert button because the table should be refreshed in order to show the new row. But when i add the partialTrigger to the table, than it like an infinite loop. Table refreshes button, button refreshed table,...
It's resolved by removing the partialTrigger from the button but i am wondering why jdev does it?
I think it has something to do with the disabled state of the button but that does not make sense. THe same for the commit button. If you want everything to work with partialTriggers, then you have lots of buttons/tables linking to each other causing loops or does ADF notices that and takes care of it?

Hi,
I reproduce your case and I do not see any loop,
about your question that why the createInsert need the partialtrigger :
1-first of all it is because of the the disabled attribute which depends on the table
2- Second, the table row selection is automatically partial, I mean when you click on the row partially the selected row is determind as it is done partially there is not any way
for depended components on the table to notify about the state of the tree(changes of row or anything) so the depended component such as CreateInsert need to set the partial trigger.
3-why the table does not need the partialtrigger at the time of drag and drop, the answer is easy because the default button that you drop on the page is not partialSubmit, so why any other depended component like Table, must have the partialtrigger?? it is only needed when the button is partialSubmit,
I hope my answer is clear enough.
to conclude, there is not any mistake or bug from Oracle for sure.

Similar Messages

  • Can I set autoSubmit="true" and partial trigger in Application Def. Editor?

    Hello Expert,
    Can I set autoSubmit="true" and partial trigger or other properties through JHeadstart Application Definition Editor?
    If I have changed the layout or add item though the Def. Editor, I have to regenerate and the manually modification
    on jsff will be overridden. Any suggestion to solve this problem?
    So far I know the page generation can be disabled, however, what if I have to regenerate the definition but want
    to remain the manual modification in Jsff?
    Thanks
    Neon

    Neon,
    You can use the "Depends on Item" property in the application definition editor. You can set this property on an item, or an item region, region container.
    The items that is specified as depends on item, will get autoSubmit="true" and the dependent items of region will get partial triggers that listen to the depends on item.
    Even if you need settings you can't generate, there is no need to switch off generation of the entire page.
    We never do this, we always specify custom templates for the bits and pieces of the page that we want to customize.
    Have you read section 4.7 "Customizing Using Generator Templates" in JHeadstart Developer's Guide?
    Steven Davelaar,
    JHeadstart team.

  • Partial trigger and circilar depedency in J dev 11g R2 ADF BC ADFRC apps.

    We have a master detail forms. Master view objects is ADF forms . Detail is table.
    We tried to prevent refresh full page when a detail record added or deleted.
    We use partial triggers. But some PPR error occurs when we tried to add new record and some PPR in table columsn to implement cascade list is triggered.
    errro log and table details as follows.
    "Target unreacehbe. identifier return null, PPR7 . pleae see server error log ..."
    Server error log is.
    SEVERE: Server Exception during PPR, #1
    java.lang.NullPointerException
    at oracle.adfinternal.view.faces.model.binding.RowDataManager.setRowKey(RowDataManager.java:134)
    at oracle.adfinternal.view.faces.model.binding.FacesCtrlHierBinding$FacesModel.setRowKey(FacesCtrlHierBinding.java:542)
    at org.apache.myfaces.trinidad.component.UIXCollection.setRowKey(UIXCollection.java:423)
    at org.apache.myfaces.trinidad.component.UIXCollection.setClientRowKey(UIXCollection.java:653)
    at org.apache.myfaces.trinidad.component.UIXCollection.setCurrencyString(UIXCollection.java:570)
    at org.apache.myfaces.trinidad.component.UIXCollection.invokeOnComponent(UIXCollection.java:1058)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnNamingContainerComponent(UIXComponentBase.java:1362)
    at org.apache.myfaces.trinidad.component.UIXDecorateCollection.invokeOnComponent(UIXDecorateCollection.java:121)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
    at oracle.adf.view.rich.component.fragment.ContextSwitchingComponent.invokeOnComponent(ContextSwitchingComponent.java:188)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnChildrenComponents(UIXComponentBase.java:1312)
    at oracle.adf.view.rich.component.fragment.UIXInclude.invokeOnComponent(UIXInclude.java:123)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at org.apache.myfaces.trinidad.component.UIXComponentBase.invokeOnComponent(UIXComponentBase.java:1406)
    at oracle.adf.view.rich.component.rich.RichDocument.invokeOnComponent(RichDocument.java:159)
    at javax.faces.component.UIComponent.invokeOnComponent(UIComponent.java:731)
    at javax.faces.component.UIComponentBase.invokeOnComponent(UIComponentBase.java:675)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._fixClientIds(LifecycleImpl.java:900)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:366)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:421)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:160)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:57)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    oracle.jbo.TooManyObjectsException: JBO-25013: Too many objects match the primary key oracle.jbo.Key[null null 03090000 ].
    at oracle.jbo.server.EntityCache.throwTooManyObjectsException(EntityCache.java:435)
    at oracle.jbo.server.EntityCache.addForAltKey(EntityCache.java:822)
    at oracle.jbo.server.EntityImpl.setAttributeValueInternal(EntityImpl.java:3668)
    at oracle.jbo.server.EntityImpl.readAttrsFromXML(EntityImpl.java:9319)
    at oracle.jbo.server.Serializer.activateEntity(Serializer.java:661)
    at oracle.jbo.server.Serializer.activateTxn(Serializer.java:555)
    at oracle.jbo.server.Serializer.activate(Serializer.java:275)
    at oracle.jbo.server.FileSerializer.activateRootAM(FileSerializer.java:256)
    at oracle.jbo.server.ApplicationModuleImpl.activateState(ApplicationModuleImpl.java:5895)
    at oracle.jbo.server.ApplicationPoolMessageHandler.doPoolMessage(ApplicationPoolMessageHandler.java:217)
    at oracle.jbo.server.ApplicationModuleImpl.doPoolMessage(ApplicationModuleImpl.java:8470)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.sendPoolMessage(ApplicationPoolImpl.java:4389)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.prepareApplicationModule(ApplicationPoolImpl.java:2385)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.doCheckout(ApplicationPoolImpl.java:2201)
    at oracle.jbo.common.ampool.ApplicationPoolImpl.useApplicationModule(ApplicationPoolImpl.java:3085)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:460)
    at oracle.jbo.http.HttpSessionCookieImpl.useApplicationModule(HttpSessionCookieImpl.java:234)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:431)
    at oracle.jbo.common.ampool.SessionCookieImpl.useApplicationModule(SessionCookieImpl.java:426)
    at oracle.adf.model.bc4j.DCJboDataControl.initializeApplicationModule(DCJboDataControl.java:515)
    at oracle.adf.model.bc4j.DCJboDataControl.getApplicationModule(DCJboDataControl.java:858)
    at oracle.adf.model.binding.DCBindingContainer.findDataControl(DCBindingContainer.java:1537)
    at oracle.adf.model.binding.DCIteratorBinding.initDataControl(DCIteratorBinding.java:2403)
    at oracle.adf.model.binding.DCIteratorBinding.getDataControl(DCIteratorBinding.java:2348)
    at oracle.jbo.uicli.binding.JUCtrlActionBinding.getDataControl(JUCtrlActionBinding.java:581)
    at oracle.adf.model.binding.DCInvokeAction.refresh(DCInvokeAction.java:27)
    at oracle.adf.model.binding.DCBindingContainer.internalRefreshControl(DCBindingContainer.java:3107)
    at oracle.adf.model.binding.DCBindingContainer.refresh(DCBindingContainer.java:2759)
    at oracle.adf.controller.v2.lifecycle.PageLifecycleImpl.prepareModel(PageLifecycleImpl.java:112)
    at oracle.adf.controller.faces.lifecycle.FacesPageLifecycle.prepareModel(FacesPageLifecycle.java:80)
    at oracle.adf.controller.v2.lifecycle.Lifecycle$2.execute(Lifecycle.java:137)
    at oracle.adfinternal.controller.lifecycle.LifecycleImpl.executePhase(LifecycleImpl.java:192)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.mav$executePhase(ADFPhaseListener.java:21)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$PhaseInvokerImpl.startPageLifecycle(ADFPhaseListener.java:231)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener$1.after(ADFPhaseListener.java:267)
    at oracle.adfinternal.controller.faces.lifecycle.ADFPhaseListener.afterPhase(ADFPhaseListener.java:71)
    at oracle.adfinternal.controller.faces.lifecycle.ADFLifecyclePhaseListener.afterPhase(ADFLifecyclePhaseListener.java:53)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl._executePhase(LifecycleImpl.java:352)
    at oracle.adfinternal.view.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:165)
    at javax.faces.webapp.FacesServlet.service(FacesServlet.java:265)
    at weblogic.servlet.internal.StubSecurityHelper$ServletServiceAction.run(StubSecurityHelper.java:227)
    at weblogic.servlet.internal.StubSecurityHelper.invokeServlet(StubSecurityHelper.java:125)
    at weblogic.servlet.internal.ServletStubImpl.execute(ServletStubImpl.java:292)
    at weblogic.servlet.internal.TailFilter.doFilter(TailFilter.java:26)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at oracle.adf.model.servlet.ADFBindingFilter.doFilter(ADFBindingFilter.java:191)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adfinternal.view.faces.webapp.rich.RegistrationFilter.doFilter(RegistrationFilter.java:85)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at oracle.adfinternal.view.faces.activedata.AdsFilter.doFilter(AdsFilter.java:54)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl$FilterListChain.doFilter(TrinidadFilterImpl.java:420)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl._doFilterImpl(TrinidadFilterImpl.java:247)
    at org.apache.myfaces.trinidadinternal.webapp.TrinidadFilterImpl.doFilter(TrinidadFilterImpl.java:157)
    at org.apache.myfaces.trinidad.webapp.TrinidadFilter.doFilter(TrinidadFilter.java:92)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.security.jps.wls.JpsWlsFilter$1.run(JpsWlsFilter.java:96)
    at oracle.security.jps.util.JpsSubject.doAsPrivileged(JpsSubject.java:313)
    at oracle.security.jps.wls.util.JpsWlsUtil.runJaasMode(JpsWlsUtil.java:146)
    at oracle.security.jps.wls.JpsWlsFilter.doFilter(JpsWlsFilter.java:140)
    at oracle.security.jps.ee.http.JpsFilter.doFilter(JpsFilter.java:70)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.adf.library.webapp.LibraryFilter.doFilter(LibraryFilter.java:159)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at oracle.dms.wls.DMSServletFilter.doFilter(DMSServletFilter.java:202)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.RequestEventsFilter.doFilter(RequestEventsFilter.java:27)
    at weblogic.servlet.internal.FilterChainImpl.doFilter(FilterChainImpl.java:56)
    at weblogic.servlet.internal.WebAppServletContext$ServletInvocationAction.run(WebAppServletContext.java:3588)
    at weblogic.security.acl.internal.AuthenticatedSubject.doAs(AuthenticatedSubject.java:321)
    at weblogic.security.service.SecurityManager.runAs(SecurityManager.java:121)
    at weblogic.servlet.internal.WebAppServletContext.securedExecute(WebAppServletContext.java:2200)
    at weblogic.servlet.internal.WebAppServletContext.execute(WebAppServletContext.java:2106)
    at weblogic.servlet.internal.ServletRequestImpl.run(ServletRequestImpl.java:1428)
    at weblogic.work.ExecuteThread.execute(ExecuteThread.java:201)
    at weblogic.work.ExecuteThread.run(ExecuteThread.java:173)
    <af:table value="#{bindings.ViewMisdt626_1.collectionModel}"
    var="row"
    rows="#{bindings.ViewMisdt626_1.rangeSize}"
    emptyText="#{bindings.ViewMisdt626_1.viewable ? 'No rows yet.' : 'Access Denied.'}"
    fetchSize="#{bindings.ViewMisdt626_1.rangeSize}"
    binding="#{backingBeanScope.backing_app_yeniEvrak.table11}"
    selectedRowKeys="#{bindings.ViewMisdt626_1.collectionModel.selectedRow}"
    selectionListener="#{bindings.ViewMisdt626_1.collectionModel.makeCurrent}"
    id="table11"
    inlineStyle="height:250px; width:100%;"
    width="900"
    rowSelection="single"
    partialTriggers=":::commandButton11 :::commandButton21 :::commandButton8 ::commandButton18 ::commandToolbarButton3 :::table3 :::commandButton10">
    <af:column sortProperty="GidisTuru" sortable="false"
    width="100" id="c1" headerText="Gidiş Türü" minimumWidth="50">
    <af:selectOneChoice value="#{row.bindings.GidisTuru.inputValue}"
    label="#{row.bindings.GidisTuru.label}"
    required="#{bindings.ViewMisdt626_1.hints.GidisTuru.mandatory}"
    shortDesc="#{bindings.ViewMisdt626_1.hints.GidisTuru.tooltip}"
    id="selectGidisTuru"
    autoSubmit="true"
    showRequired="true"
    partialTriggers="selectGittigiYer"
    immediate="true">
    <f:selectItems value="#{row.bindings.GidisTuru.items}"
    id="si1"/>
    </af:selectOneChoice>
    </af:column>
    <af:column sortProperty="GittigiYer" sortable="false"
    width="200" id="c2" headerText="Gittiği Yer">
    <af:selectOneChoice value="#{row.bindings.GittigiYer.inputValue}"
    label="#{row.bindings.GittigiYer.label}"
    required="#{bindings.ViewMisdt626_1.hints.GittigiYer.mandatory}"
    shortDesc="#{bindings.ViewMisdt626_1.hints.GittigiYer.tooltip}"
    immediate="false"
    partialTriggers="selectGidisTuru"
    id="selectGittigiYer" inlineStyle="width:200.0px;">
    <f:selectItems value="#{row.bindings.GittigiYer.items}"
    id="si2"/>
    </af:selectOneChoice>
    </af:column>

    I have some question about PPR .
    In our case
    Our forms main commit button is full_submit = true
    We added create insert button of detail view to the partial trigger of table.
    1. do we need to add froms main commit button to the detail table's partial trigers.
    2. is there any circular dpendecy between PPR . if we add a partial target to the table do we need to add this trigger to the columns.
    in our case the question is
    do we need to add create insert button of detail view to the partial triiger of cascade list items' partail triggers.
    Thanks.

  • Partial Trigger is not working with Panel Group Layout using ADF 11g.

    Friends,
    I have a requirment , Based on the <af:selectBooleanCheckbox> value I have to render <af:panelGroupLayout> dynamically. If the check box is checked then I have to display panel group layout otherwise not. The problem what I am facing here is Partial Trigger is not working, If I Un check the boolean box and refresh the page then I see it is working. If I don't refresh the page I am not seeing this is working as expected.
    Below is the snippet
    <af:selectBooleanCheckbox value="#{bindings.ChkBoolean.inputValue}"
    shortDesc="#{bindings.OtherOptChk.hints.tooltip}"
    id="OtherOpt" immediate="true" autoSubmit="true"
    />
    <af:panelGroupLayout id="pgl11" partialTriggers="ChkBoolean"
    rendered="#{bindings.ChkBoolean.inputValue}"">
    Am I doing anything wrong here
    Thanks in Advance

    Hi,
    I started to document common pitfalls like this. The problem has been reported last month too and is documented in here: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/oct2010-otn-harvest-183714.pdf
    Frank

  • Partial trigger and required field

    We developed an ADF JSF application which some of field has partial trigger .
    Then we add some required field.
    when runtime when we change any partial trigger target item all field validated and "required field missing message" occurs.
    How can we prevent this behaviour ?
    why all field controlled against partial triggered items?
    is it normal?
    How can we solve this ?
    Thanks.

    Hi,
    in JDeveloper 11 the implementation has changed and the issue wont be the same in most of the cases. There also is a notion of subform that allows you to only submit the field of interest - not affecting any other field.
    Frank

  • ADF CreateInsert and Iterator refresh control

    Hi
    JDEV Version : 11.1.1.6
    I have a scenario where i have dragged and dropped updatable EMPLOYEESVIEW as a form on my page with fields EMP_ID (Invisible on JSPX page)and EMP_NAME.
    and have buttons called ADD EMPLOYEE and SAVE.
    I enter the Value to EMP_NAME input Text box and Click on "ADD EMPLOYEE" button
    On click of  ADD EMPLOYEE button i m Setting the value of EMP_ID through java method and invoking  createInsert Operation like this.
    And i Have set Immediate property of CreateInsert button as True also "ADD EMPLOYEE" button has immediate Property set to true, since i want to show User entered EMP_NAME text on the screen bcos i need to give use an option to Edit.
                BindingContainer bindings =
                    BindingContext.getCurrent().getCurrentBindingsEntry();
      BindingContext bctxtree = BindingContext.getCurrent();
                  BindingContainer bindingtree = bctxtree.getCurrentBindingsEntry();
                  List attributelisttree = (List)bindingtree.getAttributeBindings();
                  Iterator itrtree = attributelisttree.iterator();
                                 while (itrtree.hasNext()) {
                                         AttributeBinding attrbind = (AttributeBinding)itrtree.next();
                       String label = attrbind.getName();
                                         System.out.println("lable"+label);
                       if(label.equalsIgnoreCase("EMP_ID")) {
                                           Boolean flag =
                              attrbind.processNewInputValue(variable);
                           attrbind.setInputValue(empid);
                           fetchVal=(Object)attrbind.getInputValue();
                            System.out.println(""+fetchVal);
    here i m invoking the Operation CreateInsert and Though I would have inserted the value of EMP_ID programmatically as soon as i click on CreaetInsert/ Invoke CreateInsert Operation the Binding EMP_ID becomes Empty.
    Because of which when i say "Commit" It throws me an error saying "Null cannot be inserted into EMP_ID since its primary Key"
    How to retain the Value of EMP_ID binding?
    Is it anything to do with the refresh condition which i m suppose to set for EMPLOYESSVIEWITERATOR????
    Help
    Thanks

    This is the java class
        public String onClick(ActionEvent aet) {
                            variable= (getting empid)
                    DCBindingContainer bindingsImplafter= (DCBindingContainer) bindings;
                                                            DCIteratorBinding dciterafter = null;
                    dciterafter.getRowAtRangeIndex(0).setAttribute("IntegrationId", variable);
                           dciterafter.getRowAtRangeIndex(1).getAttribute("EMP_ID"));
    dciterafter.getRowAtRangeIndex(0).getAttribute("EMP_ID"));
          dciterafter.getRowAtRangeIndex(0).getAttribute("EMP_NAME"));
    dciterafter.getRowAtRangeIndex(1).getAttribute("EMPNAME"));
                    RichCommandButton t = (RichCommandButton)genericUtility.findComponentInRoot("createinsertbutton1");
                         ActionEvent actionEvent = new ActionEvent(t);
                         System.out.println("  ActionEvent actionEvent = new ActionEvent(component);");
                         actionEvent.queue();
            return null;
    Tried setting the getCurrentRow too!!
    my jspx page:
        <af:panelFormLayout id="pfl1">
        <af:inputText value="#{bindings.EMP_ID.inputValue}"
                            label="#{bindings.EMP_ID.hints.label}"
                            required="#{bindings.EMP_ID.hints.mandatory}"
                            columns="#{bindings.EMP_ID.hints.displayWidth}"
                            maximumLength="#{bindings.EMP_ID.hints.precision}"
                            shortDesc="#{bindings.EMP_ID.hints.tooltip}"
                            id="it44">
                <f:validator binding="#{bindings.EMP_ID.validator}"/>
              </af:inputText> 
              <af:inputText value="#{bindings.EMP_NAME.inputValue}"
                            label="#{bindings.EMP_NAME.hints.label}"
                            required="#{bindings.EMP_NAME.hints.mandatory}"
                            columns="#{bindings.EMP_NAME.hints.displayWidth}"
                            maximumLength="#{bindings.EMP_NAME.hints.precision}"
                            shortDesc="#{bindings.EMP_NAME.hints.tooltip}"
                            id="it4" >
                <f:validator binding="#{bindings.EMP_NAME.validator}"/>
              </af:inputText>
    </panelFormLayout>
      <af:commandButton actionListener="#{bindings.CreateInsert.execute}"
                                text="CreateInsert"
                                disabled="#{!bindings.CreateInsert.enabled}"
                                id="cb1ci" immediate="true"  visible="false"/>
                                     <af:commandButton actionListener="#{bindings.Commit.execute}"
                              text="Commit" disabled="#{!bindings.Commit.enabled}"
                              id="cb2" />
           <af:commandButton text="+ Click to Add" id="cb1"  actionListener="#{javaclassname.onClick}"  immediate="true">
    On click of "+ Click to Add" button i m setting integration id and i click the button createInsert pro grammatically and in the front page if i call commit it says null value cannot be inserted into INTEGRATION ID.
            dciterafter.getRowAtRangeIndex(1).getAttribute("EMP_ID")); gives me null hence the EMP ID in the jspx page hold empty value in the front end too.
    How to handle this?

  • Adf  template partial trigger problem

    Hi,
    With a button in the template want to change text field in the page (created with this template)
    Partial trigger is okay but old calculated values assign to text field.
    Normally, the calculated value assign text field but assign old calculated value
    When button in the page, assigned the new calculated values
    How I can solved tihs problem?
    help me please..

    I guess I am not clear.. could you try again to describe the issue?
    Amit

  • Detail table refreshing without partial trigger!!!

    Hi,
    my Jdeveloper version is 11.1.2.3.0
    I have a master detail structure on my page and i have two weird behaviors (that i guess are related).
    I created the master detail tables in the classic way:
    I dragged the master data control and doped it on the page as an ADF table (id t1)
    Then i dragged the detail data control (from inside the master data control) and drop it as an ADF table (id t2).
    I verified that the partial trigger property of the detail table does not contain the id of the master table (t1).
    however (the first weird behavior), at run time, the detail table shows always the right information of the selected master row.
    How can this happen?
    The second weird behavior is that i have createInsert button (created by drag and drop of the createInsert operation of the dataControl) in the toolbar of the master table.
    If i create a new row and fill the required data then navigate to another row, the detail table is refreshed correctly and shows the details of the newly selected row, but if i go back (re-select) the newly created row the detail table does not refresh and still shows the detail of the previous master row!!! (furthermore, i have input date in this newly create row, so if, at this stage, i click on the calendar icon to open it, the calendar doesn't open)
    I'm i doing something wrong? or should i change any property of the tables?
    Thanks for your help

    Hi Timo,
    Thank you for your reply.
    Actually no, i didn't commit the new record at this point and this is the problem.
    If i commit the new record (using the commit button created from the commit operation of the module), the page refreshes and works correctly.
    The problem occurs if i change the selected row (and then re-selected the newly created row) before committing the changes.
    Concerning the auto PPR, do you think that deactivating it may help? and if yes, how can i deactivated for this page only?
    I tried to change the "change event policy" property of both the master and the detail iterator in the page binding from ppr to "non" but nothing changed. The detail table still refreshes, and the problem with newly created master row still appears.
    One adiitinal note: i downloaded the sample from Andrejus Baranovskis's Blog
    http://andrejusb-samples.blogspot.com/2009/03/jdevadf-sample-create-operation-for.html
    and the page is working correctly. I also created a jsf page in this project with master detail using the same method i used in my project and this pages also works correctly.
    So this means that the problem is with the verision of jdev no? but what what is it???
    Thank you again
    Edited by: 997720 on Apr 5, 2013 8:48 AM

  • CreateInsert and LOV with multiple return values

    HI. I am on Build JDEVADF_11.1.2.3.0_GENERIC_120914.0223.6276.1
    I have a View Object which is based on Entity Object.
    View Object has customer_name and customer_id attributes.
    customer_name attribute has LOV (input field with LOV) based on some other View Object (which of caurse holds customer name and customer id data)
    I defined that when LOV return the chosen values it will populate customer_name with "Customer Name" value and customer_id with "Customer Id" value
    All atributes are updatable
    I droped my View Object on the page and also "CreateInsert" buton. When I click on "CreateInsert" button, I can see new row added as expected, customer_name field has LOV. I can choose from LOV and can see customers and customer_id data. But when I click OK in the LOV pop-up only customer_name attribute is populated!
    I do see that customer_id is returned from LOV (I implemented ReturnPopupEvent listener), but still the customer id remains empty.
    I though maybe I need to add LOV as auto submit = true and set LOV to be a partial trigger for customer_id. But still  - it didn't help
    However, if I run Application Module tester, I do get what I want. I can create new row and when I change customer name , both customer name and customer id fields are populated
    Please advice

    Hi Michael,
    On Lov VO, make sure you have at least one or combination of attributes as Key attribute. and re test.
    Thanks,
    Jeet

  • Partial trigger not woring on the Submit button of the application panel.

    Hi,
    I am facing an issue that I am not sure if it is a framework bug. I used Submit button on the app panel and would like to hide it in some cases. I used a partial trigger for this button. But it doesn't respond to the trigger at all!. I also tried the same trigger on other buttons on the app panel, such as Done, Save, etc.. they all work as expected. Does any one know if this is as designed or a frame work bug?
    Thanks,
    Chunyang

    Hi Frank,
    Thanks for the reply. Good news, I just found out this morning after I refreshed my view that the Submit button refresh issue is resolved. Looks like ADF team was working on that bug.
    I have another question on the app panel buttons.
    My use case for this button is to use this Submit button as a Save and Close drop down, with Save As under it. The object has versions with a version navigation pull down list. When navigate to a Pending version, the buttons are like:
    [Save] [Save and Close |\/] [Cancel]
    |Save As |
    when navigate to a submitted/released version the buttons should be like:
    [Save As] [Done]
    Could you advise how I can achieve this? Currently I make [Save] [Save and Close |\/] [Cancel] invisible and [Done] to be visible for non-pending versions. I also added an additional |Save As | from actionButtonBar facet to be visible in this case, because the original |Save As | is under [Save and Close |\/] , which is not visible in this case. Not sure if it is the right approach. Now the |Save As | is on the left side of the vertical separator, instead of on the right side, since all the buttons under actionButtonBar facet are on the left side of the vertical separator. So you see the buttons like this:
    [Save As] | [Done]
    Thanks,
    Chunyang

  • How to set af:column child element as partial trigger?

    Hi all...
    I have put a check box in side <af:column> tag inside <af:table> like below:
    <af:table id="applications" var="b" value="#{YourApplicationsandProgressMPB.productBasket}"
                                  rendered="#{!YourApplicationsandProgressMPB.productBasketEmpty}"
                                  width="100%" >
    <af:column gridVisible="false" width="20%">
                                            <af:selectBooleanCheckbox id="[b]checkBox" value="#{b.selected}" autoSubmit="true" />
                                       </af:column>
    </af:table>
    I required to enable a button when any of these check bobes is selected.
    I could do everything except refreshing the form button.
    I mentioned this check box name as partial trigger but it is not refreshing the form like other elements.
    <af:panelForm partialTriggers="[b]checkBox productSelection1 ">
    I think the problem occurs because the checkbox is inside a loop. So it is assigning its own names to each checkbox like formname:0:chceckBox
    Could anybody please help me out in this?
    How can I refresh the page when any check box is selected?
    Thanks in advance....

    You posted this in the wrong forum - this is the Designer forum. Try the JDeveloper forum at JDeveloper and ADF However, I happen to have seen a blog entry today that may help. Take a look at http://www.it-eye.nl/weblog/2007/08/02/jsf-partial-page-rendering-hell/

  • Partial Trigger Problem

    Hi All,
    Jdeveloper Version: 11.1.1.6.0
    ADF
    In JSFF page, components bind with bean. I am setting values for the bean through listener. And I added partial trigger to that component container.
    (i.e) AdfFacesContext.getCurrentInstance().addPartialTarget(a_component.findComponent("componentID"));
    Is any other way to add partial trigger to that componet? Can I set partial trigger in JSFF page itself?.
    Regards
    Mohanraj

    Thanks Timo
    This is my code:
    <af:panelGroupLayout layout="horizontal" id="changeAddress">
    </af:panelGroupLayout>
    Listener:
    public class PinCodeListener
    public static void execute(ActionEvent actionEvent)
    try
    UIComponent a_component = (UIComponent) actionEvent.getSource();
    AdfFacesContext.getCurrentInstance().addPartialTarget(*a_component*.findComponent("changeAddress"));
    catch(..)
    How can I get UIComponet? I am having only component ID.
    Am I need to get RichPanelGroupLayout?
    Like this way,
    RichPanelGroupLayout a_panelLayout = (RichPanelGroupLayout) a_component.findComponent("changeAddress");
    AdfFacesContext.getCurrentInstance().addPartialTarget(a_panelLayout);
    Mohanraj

  • Partial trigger for treetable

    I am using 11g. I have a adf treetable similar to the employees. The tree table is working fine.
    I have two panel accordian. The first accordian has the treetable.
    I want to display the salary and more information for the employee in the second panel accordion.
    The problem is the salary is not getting refreshed when I do the row selection in the tree table.
    I set the id of the treetable to the partial trigger of the Salary.
    Am I missing something in setting the properties?
    I really appreciate your help.
    Thanks

    <f:facet name="center">
    <af:treeTable value="#{bindings.EmpView1.treeModel}" var="node"
    selectionListener="#{bindings.EmpView1.treeModel.makeCurrent}"
    rowSelection="single" id="treetbl" immediate="true"
    columnSelection="single" initiallyExpanded="true">
    <f:facet name="nodeStamp">
    <af:column inlineStyle="width:500px;">
    <af:outputText value="#{node}"/>
    </af:column>
    </f:facet>
    <f:facet name="pathStamp">
    <af:outputText value="#{node}"/>
    </f:facet>
    </af:treeTable>
    </f:facet>
    <f:facet name="header"/>
    <f:facet name="end">
    <af:panelGroupLayout layout="vertical">
    <af:panelLabelAndMessage label="#{bindings.Sal.hints.label}"
    partialTriggers="treetbl">
    <af:outputText value="#{bindings.Sal.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Sal.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Mgr.hints.label}"
    partialTriggers="treetbl">
    <af:outputText value="#{bindings.Mgr.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Mgr.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    <af:panelLabelAndMessage label="#{bindings.Sal.hints.label}"
    partialTriggers="treetbl">
    <af:outputText value="#{bindings.Sal.inputValue}">
    <af:convertNumber groupingUsed="false"
    pattern="#{bindings.Sal.format}"/>
    </af:outputText>
    </af:panelLabelAndMessage>
    </af:panelGroupLayout>
    </f:facet>
    It works only for 1'st level. When I choose the child nodes the Job, Salary, mgr is not refreshing.
    Thanks

  • How to set partial trigger of the component which is in different Page Fragements

    I want to set the partial trigger of a ADF control which is in different page fragment.
    Would you please help me regarding this.

    Hi,
    so fragments on a page are within regions and your requirement is to refresh a component in region A in response to an action on a component in region B. If this is correct, then the choice is
    1. use contextual events
    2. use a managed bean that is injected to region B to notify the parent page (manged bean in view scope) about a component change. Now this parent page can refresh the region B container performing e.g. a PPR or a full refresh
    Frank

  • LOV input , SelectOneChoice - Partial Trigger Ploblem..

    ADF , Jdev 11g.
    I populated Master-Detail, and added Partial Trigger.
    Master - Lov input
    Detail - SelectOneChoice like below
    * DataControlPanel
    Table(Parent)Lov-
    .....................-Table(child) SelectOneChoice
    When I populated SelectOneChoice instead of Lov as Master,
    I is work.
    but Lov is not work...
    any ideas?
    regard..

    I tried it. but It is not working.
    <f:view>
        <af:document>
          <af:messages/>
          <af:form>
            <af:pageTemplate viewId="/oracle/templates/threeColumnTemplate.jspx">
              <f:facet name="center"/>
              <f:facet name="header"/>
              <f:facet name="start">
                <af:group>
                  <af:inputListOfValues id="descriptionId"
                                        popupTitle="Search and Select: #{bindings.Description.hints.label}"
                                        value="#{bindings.Description.inputValue}"
                                        label="#{bindings.Description.hints.label}"
                                        model="#{bindings.Description.listOfValuesModel}"
                                        required="#{bindings.Description.hints.mandatory}"
                                        columns="#{bindings.Description.hints.displayWidth}"
                                        shortDesc="#{bindings.Description.hints.tooltip}"
                                        autoSubmit="true">
                    <f:validator binding="#{bindings.Description.validator}"/>
                  </af:inputListOfValues>
                  <af:selectOneChoice id="nl3" autoSubmit="true"
                                      value="#{bindings.CriteriaList2.inputValue}"
                                      label="#{bindings.CriteriaList2.label}"
                                      partialTriggers="descriptionId">
                    <f:selectItems value="#{bindings.CriteriaList2.items}"/>
                  </af:selectOneChoice>
                </af:group>
              </f:facet>
              <f:facet name="branding"/>
              <f:facet name="copyright"/>
              <f:facet name="status"/>
              <f:attribute name="startColumnSize" value="400"/>
            </af:pageTemplate>
          </af:form>
        </af:document>
      </f:view>and let me explan about 'autosubmit' plz

Maybe you are looking for

  • Different headers & footers on odd & even pages in Pages 5 ?

    Hello all, I just upgraded to Pages 5 in Mavericks. How can I have different headers & footers on odd & even pages ? For example a header containing odd numbers on the right page and even numbers on the left page. I looked carfully in the menus & pan

  • Using iPhone 3Gs as an iPod Touch, while using my new Verizon iPhone 4 as a phone? Lost original sim?

    Well, Im at a loss for this one. A few weeks ago I jumped over to verizon predicting that Id rather get an iPhone 4 and wade through the intermediate (iPhone 4s, iPhone 3GS) release until the iPhone 5. I planned on using my old iPhone 3Gs (AT&T, of c

  • Check overflow on another printer

    Hi All, I'm working on the check printing program in transaction F110 and program RFFOUS_C. Is there a way that the 1st page be printed on 1 printer and the overflow on another printer? The check preprinted form is in 1 printer and the plain paper in

  • Need acrobat pro 9 for mac and Lightroom 4 for mac - standalone versions

    I lost my hard drive and I am trying to reinstall programs. I have the serial numbers but I cannot find the program download links for these two products

  • Promise SATA problem

    Thanks to both of you.  I've tried hitting ctrl-F but nothing appears.  I can get into the Amibios no problem and have set the Promise controller to SATA only.   After reading what you've both said let me say what my set up is.  I have an 80Gb Maxtor