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





      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 ?

          • 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");