Programmatically get expression value of facelets parameter (variable)
Following java code allows to access any object or variable from faces context: ELContext elCtx = facesContext.getELContext(); ExpressionFactory exprFac = facesContext.getApplication().getExpressionFactory(); MyProperty myProperty = (MyProperty) exprFac.createValueExpression(elCtx, "#{somebean.someattr.someproperty}", MyProperty.class).getValue(elCtx); I use the code from within my custom converter to read additional converting parameters from context. The code works correctly if #{somebean} is defined as normal backing bean within JSF context. Facelets allow to create 'shortcut' to JSF