Page life cycle problem

We suspected af:tree had a bug but we observed during debugging that our problem is due to page life cycle and we are searching a way to solve it at the best :
Our problem is the following :
1) we have in the same page a af:tree linked to a java bean data control that present some content in a hierarchy form (link an index) and a second part that contains some ui that represent the selected af:tree node content (linked java bean content). The second part ui's are updateable
2) when we first load the page the af:tree is correctly rendered and we are able to navigate into into it without any problem (expand/collapse). The ui's are empty because we didn't select anything
3) when a node is selected in the af:tree the correspoding data are loaded in ui's. That is perfect.
4) when a second (another) node is selected we discovered that
4.a) the af:tree was positioned to the new node selected that mean that we changed the context in our java bean
4.b) the changes previously done in ui's were executed (eved nothing was edited) in the java bean and that in the wrong context.
This situation cause a mismatch in our java bean data
What is the best way to solve this ?
Is this described somewhere in the documentation how to solve such problem in a same page ?
Is ppr the way ?
Thanks in advance

Hi Frank
What I was missing is that when a node is selected, a code from node details is setted as a parameter in the page, the page (outcome null in af:tree) is refreshed that will cause the ui's method binding to be executed again but after the parameter is setted. The ui's are built from the result a method that will get the corresponding java bean based on the parameter.
is this data queried by you or is it part of the tree node information or detail leafes?
They code is part of the tree node. It is setted into a page parameter. The ui's data is getted from a method (see below method iterator, methodaction from the page definition).
When you say data gets executed upon changing the tree row focus, what does this mean? Do you have a submit defined upon focus lost for the tree?
ui's binding is executed. The setter's are executed.
So what is the desired behavior you are looking for ?
The setter have to be executed before the java bean context is updated, i mean before the binding to the method action is executed
Actually i have, when i click on a node in a previously loaded page:
1) click on node
2) set the parameter from selected node
3) refresh the page
4) execute what we can name a java bean finder method (a java bean method that select a xml node in xml java bean using jxpath with a xpath expression that is executed from the method action in the page definition)
5) execute the setter from the binding (but into the wrong java bean because the method action change the java bean context)
In fact, 5) has to be executed before 4) is executed
That is my problem
af:tree code :
              <af:tree value="#{bindings.ClassificationEntryListclassificationEntry.treeModel}"
                       var="node">
                <f:facet name="nodeStamp">
                  <h:panelGroup>
                    <af:commandLink text="#{node}">
                      <f:param name="selectedEntry"
                               value="#{node.classificationEntryCode}"/>
                    </af:commandLink>
                  </h:panelGroup>
                </f:facet>
              </af:tree>Page definition :
<?xml version="1.0" encoding="UTF-8" ?>
<pageDefinition xmlns="http://xmlns.oracle.com/adfm/uimodel"
                version="10.1.3.39.84" id="untitled1PageDef"
                Package="view.pageDefs">
  <parameters/>
  <executables>
    <iterator id="ClassificationDocumentDataControl_rootIter" RangeSize="10"
              Binds="root" DataControl="ClassificationDocumentDataControl"/>
    <accessorIterator id="classificationIterator" RangeSize="10"
                      Binds="classification"
                      DataControl="ClassificationDocumentDataControl"
                      BeanClass="classification.testcase.castor.Classification"
                      MasterBinding="ClassificationDocumentDataControl_rootIter"/>
    <accessorIterator id="classificationEntryListIterator" RangeSize="10"
                      Binds="classificationEntryList"
                      DataControl="ClassificationDocumentDataControl"
                      BeanClass="classification.testcase.castor.ClassificationEntryList"
                      MasterBinding="classificationIterator"/>
    <accessorIterator id="classificationEntryIterator" RangeSize="10"
                      Binds="classificationEntry"
                      DataControl="ClassificationDocumentDataControl"
                      BeanClass="classification.testcase.castor.ClassificationEntry"
                      MasterBinding="classificationEntryListIterator"
                      Refresh="ifNeeded"/>
    <variableIterator id="variables"/>
    <methodIterator id="findClassificationEntryByIdentificationIter"
                    Binds="findClassificationEntryByIdentification.result"
                    DataControl="ClassificationDocumentDataControl"
                    RangeSize="10"
                    BeanClass="classification.testcase.castor.ClassificationEntry"/>
  </executables>
  <bindings>
    <tree id="ClassificationEntryListclassificationEntry"
          IterBinding="classificationEntryIterator">
      <AttrNames>
        <Item Value="classificationEntryCode"/>
        <Item Value="classificationEntryCount"/>
        <Item Value="valid"/>
      </AttrNames>
      <nodeDefinition DefName="classification.testcase.castor.ClassificationEntry"
                      id="ClassificationEntryNode">
        <AttrNames>
          <Item Value="classificationEntryCode"/>
        </AttrNames>
        <Accessors>
          <Item Value="classificationEntry"/>
        </Accessors>
      </nodeDefinition>
    </tree>
    <methodAction id="findClassificationEntryByIdentification"
                  InstanceName="ClassificationDocumentDataControl.dataProvider"
                  DataControl="ClassificationDocumentDataControl"
                  MethodName="findClassificationEntryByIdentification"
                  RequiresUpdateModel="true" Action="999"
                  IsViewObjectMethod="false"
                  ReturnName="ClassificationDocumentDataControl.methodResults.ClassificationDocumentDataControl_dataProvider_findClassificationEntryByIdentification_result">
      <NamedData NDName="entryIdentification"
                 NDValue="#{param.selectedEntry}"
                 NDType="java.lang.String"/>
    </methodAction>
    <attributeValues id="classificationEntryCode"
                     IterBinding="findClassificationEntryByIdentificationIter">
      <AttrNames>
        <Item Value="classificationEntryCode"/>
      </AttrNames>
    </attributeValues>
  </bindings>
</pageDefinition>Hope it is a little bit more clear

Similar Messages

  • Can any body explain me JSF Page Life Cycle?

    Hello All
    Can any body explain me JSF Page Life Cycle?
    I wanted to know basically following few things
    1. how the JSF component will be rendered to html
    2. How the ValueBinding and MethodBinding mechanish works
    3. On conditional situation, if we need to generate the page dynamically with the various components, then what is the role of ValueBinding mechanism?
    4. What happens once the page is rendered?? In other words, does the FacesContext instance holds the object information in cache or sends it to garbage collector??
    5. Other than ValueBinding mechanism does we have any other procedures to bind the beans to components , when dynamic controls generation situation arises??
    Thanks
    Sudhakar Chavali

    Thanks Giri, for your continuous support
    Basically I get these doubts because I am not able to get right response from Java Server Faces when I communicate between Non_JSF and Jsf Pages
    please have a look on following links. Where I need your support
    http://swforum.sun.com/jive/thread.jspa?threadID=54347&messageID=208120#208120
    http://swforum.sun.com/jive/thread.jspa?threadID=54379&messageID=208222#208222
    Thanks
    Sudhakar

  • Using page life cycle (OnPageLoadBackingBeanB)class to update page controls

    I used the onPageLoadbackingBeanbase class that exists in SRDemo to handle the page life cycle for my project ADF faces pages but found that the controls is null in all phases of the page
    How can i use the page life cycle for dealing with the page controls like
    filling selectOneChoice in the isPostback once not in every action or refresh
    thanks

    I sent this post 1 week ago and no response
    please help
    Message was edited by:
    user560167

  • Creator Page Life Cycle Callback Methods

    Hi,
    In JSC Field Guide, we can read that in with JSC 2 we can use Page Life Cycle Callback Methods.
    It 's a good thing but what about compatibility with JSF implementation ?
    Best regards,
    Regis

    Hi,
    Could you please explain what you mean by "compatibility with JSF implementation"?
    Cheers
    Giri

  • Problems with Safari, Acrobat, Intel Macs, and Life Cycle Form Mgr.

    Here is my problem:
    A Mac user using 10.4.10, with Acrobat Standard Ed v.7.0.9 installed,
    is having to approve purchase forms through Adober Life Cycle Form Manager
    through Safari 2.0.4. When trying to approve the PDF forms, it tells her
    she needs to have Acrobat v.7 installed, and only shows a white page.
    Went back and launched Acrobat 7.0.9, and did the "Detect and Repair"
    setting to verify the Adobe PDFViewer plugin was installed.
    Said it was, checked the Library/Internet Plugins folder and it was.
    Launched Safari, Safari's list of plug-ins does not show it as being installed.
    Trashed the Safari .plist file, relaunched Safari, same thing.
    Read on the Apple site that people were experiencing similar issues,
    Read on Adobe's site that for Intel Macs, should be using v. 8.01.
    Downloaded the 8.01 Acrobat Reader and installed it.
    re-launched Safari, success, it says the plugin, v.8.01 is installed.
    Go back to Adobe Life Cycle Forms Manager, go to view a PDF,
    at 100% screen size, PDF shows correctly. Zoom in on details,
    PDF goes blank, will not show details. Zoom back out,
    PDF goes white page, no info displayed.
    My Questions:
    1. is it an issue with Adobe Life Cycle Forms Manager and Safari on Intel Macs?
    2. Is there a way to get a proper plug in for Safari, so that Acrobat will read the PDFs
    instead of the default Preview?
    thanks in Advance

    bump
    anybody running ALCFM and Acrobat 8 with an Intel Mac,
    are you running into issues with approval of PDF forms?

  • Life cycle or whatever it is...

    I think the reason why this doesn't work has something to do with the life cycle...
    The point is I need to render only the fields related with the selectedItem in the selectOneListbox and all the rendered items are required.
    My problem is, when the SelectedItem is selected all the fields shows the 'blank field' message and it doesn't render the fields related to the chosen selected item. The feeling I have is that the value associated with the selectOneListbox never updates...
    Here is a selectOneListbox where the value "#{editInterfaceBean.networkInterface.linkType}" is associated with the item selected (or should be...)
    <h:outputLabel for="linkType">
         <h:outputText value="#{msgs.linkType}:" />
         </h:outputLabel>
         <h:selectOneListbox id="linkType"
              size="1"
              onchange="submit()"
              immediate="true"
              value="#{editInterfaceBean.networkInterface.linkType}">
              <f:selectItems value="#{editInterfaceBean.linkTypes}" />
         </h:selectOneListbox>
         <h:panelGroup />Look that the required and rendered fields are associated with the same method:
    <h:outputLabel for="dslLogin"
    rendered="#{editInterfaceBean.dsl}">
         <h:outputText value="#{msgs.login}: " />
         </h:outputLabel>
         <h:inputText id="dslLogin"
              value="#{editInterfaceBean.login}"
              rendered="#{editInterfaceBean.dsl}"     
              required="#{editInterfaceBean.dsl}">
         </h:inputText>
         <h:message for="dslLogin" styleClass="errorText"
              rendered="#{editInterfaceBean.dsl}"/>This is the method that the rendered and required field are associated with. Observe that it return the value associated with the value field on the selectOneListbox.
    public boolean isDsl() {
         return this.networkInterface.getLinkType().equals("dsl");
    }

    Hi guys! Well, I tried the valueChangeLisener, didn't worked. In the end I decided to send global messages, validating in the bean, not in the page... it's not really the best thing to do but... works.
    Thanks anyway!

  • Where in the MIDlet life-cycle should I create multiple forms with LWUIT ?

    Hi all,
    I must create two LWUIT forms in my application. Where should I create the two forms ? I created the first form in the startApp life-cycle method , and when I tried to create also the second form in the startApp method then there is a NullPointerException raised when running the application !
    So where , or how , should I create the second form ?
    Thank you very much indeed
    Edited by: andrianiaina on May 20, 2011 1:59 AM

    I think the problem here is that Arlhoolie wants all of the different TEBs to behave as if they were part of a single interaction that submits only ONE result to the quiz.  Using multiple TEBs in Captivate means that you have multiple scored objects and therefore multiple results being submitted to the quiz.
    If you want a single Success or Failure result submitted to the quiz based on the results from multiple interactive objects then there really is no simple way to do it.  But you could try using the Infosemantics Interactive Master widget to combine all the TEBs as slave objects that report to the Master Widget, which then reports a single score to the quiz based on the results from the slave objects.
    You can learn more about the Master widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/interactive-master
    http://www.infosemantics.com.au/interactivemaster/help
    You can download a free trial version of the widget here:
    http://www.infosemantics.com.au/adobe-captivate-widgets/download-free-trial-widgets
    One caveat you should be aware of is that this widget is not HTML5 compatible.

  • Hyperion Life Cycle Management Utility - 9.3.1

    Hi Friends,
    Our environment is Hyperion System 9.3.1 on Windows box & repository in Oracle 10gR2 database.
    We are facing problem in exporting "x-brioquery" Repository Objects by using "Hyperion Life Cycle Managament Utility" :
    LCM utility is running without any error in log file but in "ExportedOutput" folder
    there is only one folder named "info".
    Resource folder is not getting created.
    Please guide us for the same.
    Kind Regards,
    Manmohan

    Apparently this is reported as a bug.

  • Content Life Cycle Management - Portal or NW Client.

    Hello GRC PC Experts,
    Kindly let us know whether Content Life Cycle Management is compatible on  Portal as front end.
    Or whether CLM is only compatible with NW Client.
    Please let us know.
    Thanks and regards
    Babu

    Hi,
    You need to integrate the system with portal
    system administration - system configuration and then add system.
    If you have sso then it is better.
    Then create new iview using templetes and then use SAP bsp iview templete and then select the system and then give the application name and start page of your BSP application.
    Thanks and Regards,
    gopal

  • Life Cycle Management BODI

    Hi folks,
    can anyone give me some hints how life cycle management is done in BODI?
    I want to connect a DB2 database via BODI with a BI. BI comes in 3 tier layer. Would you install 3 BODI server? And if so how do I "transport" the changes from one repository (Development) to another one (Production)?
    What is best practice for that?
    Unfortunately I didn't find any documents so far.
    Your help is very welcome.
    Best regards
    Michael

    This is what I have: https://wiki.sdn.sap.com:443/wiki/pages/viewpage.action?pageId=49414406

  • Designing issue in Adobe Life Cycle in interactive form

    Hi,
      My design in Adobe Life Cycle is like,I have to show one image in left corner of the page and giving header and footer
    by using Static Text from Library.I have created the designing and running this application ,it is running fine.But my requirement is i have  to show 50 pages and each page should have same header and footer.How can i do it ?
    And how i will break the pages in to 50 pages.
    Thanks & Regards
    Muna

    Open the PDF file
    Click Ctrl+D (which opens up properties diaglo box)
    Switch to Security Tab
    Change security method to No Security
    If it asks for password - provide the password
    Click Save
    Try to re-open the PDF to ensure that it does not ask you to enter password
    now open the PDF file using LC Designer
    HTH
    --Santosh
    http://about.me/nskumar

  • ADF application life cycle

    Hi,
    Can any one tell me how the life cycle of an application is taken care in ADF application?
    I have an ADF application. Once I logout of the application, and click internet browser 'Back' button to come to a page which needs the DB interaction, I need my application to go to 'Logout' page again and remain in there until I again login, because actually I am out of my application. But at present I do get the following error.
    javax.faces.el.EvaluationException: Error setting property 'form1' in bean of type..java.lang.NullPointerException
    I have the following code when I logout of the application.
    FacesContext ctx = FacesContext.getCurrentInstance();
    ExternalContext ectx = ctx.getExternalContext();
    HttpServletResponse response = (HttpServletResponse)ectx.getResponse();
    HttpSession session = (HttpSession)ectx.getSession(false);
    session.invalidate();
    response.sendRedirect("CRLIF001.jsp");
    ctx.responseComplete();
    return null;
    Is there any code that I need to write to fix this? Could any one please help me?
    Thanks,
    Venki

    Hi,
    actually it does what you tell it to do: It deletes the session and as such the form is not available. You may be able to use a servlet filter that checks the session ID and the user authentication. If you detect that the session has changed or the user isn't authenticated, you redirect him to the page you want
    Frank

  • Sequence of Elements in the JSP Life Cycle

    How do I place several elements such as
    Create Instance
    Page translation
    JSP compilation
    Load class
    in the JSP life cycle
    Call jspInit
    Call _jspService
    Call jspDestroy

    See if http://java.sun.com/j2ee/tutorial/doc/JSPIntro4.html#62582 if this is what you wanted to know.

  • Adobe Life cycle designer ES2 Activex control

    I have Adobe Lifecycle designer ES2 tool installed in my PC. I need to get the Activex control for adobe Life cycle tool so that i can use it to programatically create and edit the PDF file. can any one help me in finding the name of the activex control.
    Thanks in advance
    Regards,
    Jayavanth.G

    Hello,
    use this:
    Have a look at Note 1121176 and Note 1253121
    https://websmp230.sap-ag.de/sap(bD1jcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1121176
    https://websmp130.sap-ag.de/sap(bD1jcyZjPTAwMQ==)/bc/bsp/spn/sapnotes/index2.htm?numm=1253121
    Hope this solves our problem, regards Otto

  • Managed beans life cycle

    Hi,
    I thought I had a good grasp on <managed-bean> concept, but I wanted to understand better their life cycle since JSF framework takes care of it. JSF documentation doesn't seem to be very explicit on when exactly managed beans get created, when they get initialized, and when they are put into appropriate scope.
    I have an application that consits of large number of form (JSPs), close to 8 thousand JSPs. Depending on the usage scneario, it can use anywhere from 100 to 1000 of them at a time. I pretty much have one backing bean per one JSP page (form). Obviously, all 8 thousand backing beans would be declared in the faces-config.xml. I would like to make sure that only a few hundred of them are instantiated for each usage scenario as I only go through that many pages.
    Any help would be greatly appreciated.
    Thanks in advance,
    Vadim.

    Managed beans are created lazily - only when explicitly requested - and then immediately placed in scope. They will not be re-created until that scope goes away or their reference in that scope is explicitly nulled out.
    -- Adam Winer (EG member)

Maybe you are looking for

  • Scientific Notation on MID

    having trouble with a parsed out excel file. We import processor files into our application and do so with maybe 20 different processors. However one file is giving us a particular problem, even though the MID colum looks to be  a simple MID like thi

  • Problem in Flash embed

    Hi All... I tried to publish my flash as HTML.. Scrollbar not coming in browser when my flash exceeds page size. becoz my flash height will increase dynamically in some cases.. I need a scroll when my flash exceed

  • Sharing 1 monitor, keyboard and mouse

    I have a brand new macbook (bought March 1, 2007). I additionally own a Dell tower running Windows XP. Is it possible to have the macbook and Dell PC share 1 monitor, keyboard and mouse via a KVM switch? How do I do it? What cables do I need? MacBook

  • T61 connected to TV

    I have a T61 laptop with a VGA port. I would like to connect it to a 42" plasma high-definition TV with HDMI / Composite Video/ Component Video inputs.  I realize I'd need some kind of converter. There are numerous choices (e.g. at newegg.com). Does

  • Defrag index automatically (in configuration)

    in 11g, what is the configuration to automatically defrag the tables and index continuously? is it advisable to do it on data warehouse with 200GB tables? thanks