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

Similar Messages

  • 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

  • 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

  • Life cycle method logic

    Hi. I want to ask a few questions about the life cycle methods of Windows Phone App:
    the OnNavigatedTo and OnNavigatedFrom, when is that methods called and what method is called when app goes to background, the screen locks(screen saver) and when app resumes? Thank you.

    Hi,OnNavigatedTo
    this method call after the initialization section.I recommend you load your data asynchronously. OnNavigatedTo is
    one place where you can start the loading.
    OnNavigatedFrom:- This
    method call when application leave the page.OnNavigatedFrom is one place where release application page resources/clean
    memory/clean Back stack entry etc.eg-If application running and you press back button/start button then this method call.
    Don't
    forget to mark the right answer and vote up if helps you.

  • What method is called only once in the life cycle?

    Hello,
    What method is called only once in the life cycle of an Entity Bean and Session Bean?
    Is it ejbRemove()?
    Thanks

    hi,
    ejbCreate() and setSessionContext() are called once by the container after the bean instace is created.when the bean instance goes to pool and again return to ready state to handle client requests these methods r never called .only bussiness methods r called.this is in case of stateless session bean.
    in case of stateful session bean, each bean instance is associated with client.so,when new client requests, new bean instance is created and above 2 methods are called. no pool terminology in case of stateful session bean.
    ejbRemove() is called by the container when it is abt to remove bean instance,so it its obvious tht it is called only once.

  • 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

  • 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.

  • Life cycle of a web dynpro callable object

    What is the life cycle of a web dynpro callable object.
    Means when that Web dynpro callble object is used in a GP process which method of that component called first and what is the sequence of the method execution in that.
    Can anyone please explain me.

    Sorry ritu there was one mistake in the above two replies.
    The actual execution of the methods when a callable objects is get executed is as following
    1.component controller's  init() method
    2. interface's  init() method
    3.view's  init() method.
    4.interface's execute() method
    5.view's wDoModifyView() method.
    If you want to change anything on your view according to the change in the interfac's execute method.
    Then you have to do that coding in view's wDoModifyView() method.
    with regards
    shanto aloor.

  • Regarding SLCM (Student Life Cycle Management)

    Hi
    does any one working on Student Life Cycle Management(SLCM)
    can any one pls let me know what are the function modules present in the predefined business package and how to know what are the predefined functonalites given by sap.
    when i test the predefined Iviews i get an error for some of iview as student object id not found.
    can any one pls let me know about this
    Bye

    Ok Fine
    I have some points to share thise issue with u
    first thing is , iam using wrong application for the requirement.
    and even i use wrong apps some thing result should be show, as i said the error i got
    we raised an sap Oss for this, they provided the solution as stating that we are using the apps which are specific to the advisor but not for the students specially.
    So if u want to use those apps for student purpose we need to get that student object and pass in our application.
    for this purpose we need an abaper help who is well versed in the coding part.
    just modify the code of required application where u fetch the object id (BY Coding) in ithe intialization method,
    then the appication works fine
    this is the solution i got and all my apps are working fine now.
    Thanxs
    sandeep

  • 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

  • Jsf 1s phase of life cycle how knows ths components of the jsp with jsf tag

    i wish to know how faces servlet knows the jsp s view components while creaTI NG component tree at first request to input jsp which may have jsf tags.in the first phase faces servlet doesnot know input jsp with jsf tags what componnets it has. it is actually atthe response send or forward time which is the final phase when the tag ge executed and output is sent to client.i did understandin jsf life cycle in 1 st phase component tree is created at first request in 1 st phase .

    Hi,
    though a FacesContext holds the values used by a request, it doesn't mean it lives for as long as the request. The best explanation I found is from the JavaDocs
    release
    public abstract void release()
    +Release any resources associated with this FacesContext instance. Faces implementations may choose to pool instances in the associated FacesContextFactory to avoid repeated object creation and garbage collection. After release() is called on a FacesContext instance (until the FacesContext instance has been recycled by the implementation for re-use), calling any other methods will cause an IllegalStateException to be thrown.+
    The implementation must call setCurrentInstance(javax.faces.context.FacesContext) passing null to remove the association between this thread and this dead FacesContext instance.
    Throws:
    java.lang.IllegalStateException - if this method is called after this instance has been released
    Frank

  • 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

Maybe you are looking for

  • Photoshop CC and 64-bit Versions

    I just installed Photoshop from the Creative Cloud Desktop application and after it installed, I noticed that I had two versions, one named "Adobe Photoshop CC" and another named "Adobe Photoshop CC (64-bit)". What is the purpose of having two versio

  • Nokia 6021 tcp/ip

    hey i'm wondering what does the packaet data connectivity mean? can i connect my nokia to my home tcp/ip i.e wireless router? if so how? or is this the connect between the computer and the phone for i.e surfin on the computer thorugh gprs etc?

  • Creating price list

    hi all i m new bee to OM module.. i want to create one price list and i want add one item as computer of worth 50000 my business group /Legal entity/operating unit/Inventory are all one and the same.. can u pls guide me . what all r the profile optio

  • Install of Win 7 will not continue.

    Hello there, I want to install Windows 7 via Boot Camp and using a MacbookPro (about 14 month old). What I have here is the Install CD of Win 7, Mac OSX Snow Leopard and some Version of Bootcamp. Here is the first problem, I can`t find the informatio

  • Garageband iPad midi editor doesn't display all the sounds that I used

    I used a Korg nano keyboard to record some drums into Garageband using Garageband's own drums. But somehow the snaredrum that I both hear and see in the overall editor is not dislpayed in the drum midi-editor. This renders me unable to edit my snared