2 Replies Latest reply: Aug 23, 2013 4:24 AM by Sai Yeluri RSS

    Scope

    997766

      Hi,

       

      I am using JDEV 11.1.2.1.0

       

      Can we access variables from backing bean and page flow scope in the same page ?

       

      Thanks,

        • 1. Re: Scope
          Cvele_new_account

          Of course:

          #{myBean.myVariable}

          #{pageFlowScope.myAttribute}

           

          can you elaborate usecase in more details ?

          • 2. Re: Scope
            Sai Yeluri

            You can access the PageFlowScope from a backing bean, by getting the AdfFacesContext instance and calling its getPageFlowScope() method. This will return the Map of all objects stored in the PageFlowScope. To retrieve a specific object, call get() on the Map specifying the object identifier. Similarly, call the getViewScope() and getProcessScope() methods of the AdfFacesContext to retrieve the ViewScope and ProcessScope respectively.

             

             

            Example:

             

             

                    // in the context of a backing bean

                    Object data = AdfFacesContext.getCurrentInstance().getPageFlowScope().get("objectID");