Pages

Tuesday, January 28, 2014

How Send Data Through Process ,Session ,PageFlow Scope ?

Sometimes we need to save data in the backing bean to use it later.
So you need to store this value in a scope


Set in UserData
        ADFUtils.getAm().getSession().getUserData().put("CustomerName", "ADAM");

Get : 

     ADFUtils.getAm().getSession().getUserData().get("CustomerName");


Groovy adf.userSession.userData.CustomerName


Set in Process Scope

 AdfFacesContext.getCurrentInstance().getProcessScope().put("CustomerName", "ADAM");
   
Get : 
      AdfFacesContext.getCurrentInstance().getProcessScope().get("CustomerName");




Set in PageFlow Scope

    AdfFacesContext.getCurrentInstance().getPageFlowScope().put("CustomerName","ADAM"); 

Get : 
    AdfFacesContext.getCurrentInstance().getPageFlowScope().get("CustomerName"); 




No comments:

Post a Comment