Monday, March 4, 2013

ADF 11G : Work with Scopes

ADF 11G : Work with Scopes



 


 

















  public String switchImage() {
     
        Map viewScope = AdfFacesContext.getCurrentInstance().getViewScope();
     
        String currentFacet = null;
        currentFacet = viewScope.get("binState").toString();
        viewScope.put("binState", "2");
        return null;
    }

--------------------------------------
    public String enterTF() {
        // Add event code here...
        RequestContext afContext = RequestContext.getCurrentInstance();
        afContext.getPageFlowScope().put("name", "Neelmani Jaiswal");
        return "enterTF";
    }


    public String enterTF() {
        // Add event code here...
        RequestContext afContext = RequestContext.getCurrentInstance();
        afContext.getProcessScope().put("name", "Neelmani Jaiswal");
        return "enterTF";
    }
------------------------------------
import oracle.adf.share.ADFContext;
ADFContext.getCurrent().getSessionScope().put("Roll", this.it1.getValue().toString());