2 Replies Latest reply on Aug 23, 2013 9:24 AM by Sai Yeluri





      I am using JDEV


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



        • 1. Re: Scope

          Of course:




          can you elaborate usecase in more details ?

          1 person found this helpful
          • 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.






                    // in the context of a backing bean

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

            1 person found this helpful