Tuesday, 28 January 2014

ADF : How to get the value of the Input Parameter Definitions through the code.

String scopeVariableValue = (String)this.getElExpression("#{pageFlowScope.variable}"); // pageFlowScope.variable is a Input Parameter Definitions variable

    public Object getElExpression(String el) { 
      
        FacesContext objFacesContext = FacesContext.getCurrentInstance();
        ELContext objELContext = objFacesContext.getELContext();
        ExpressionFactory objExpressionFactory = objFacesContext.getApplication().getExpressionFactory();
        ValueExpression objValueExpression =
            objExpressionFactory.createValueExpression(objELContext, el, Object.class);

        return objValueExpression.getValue(objELContext);
    }



No comments:

Post a Comment