Maybe you need to get values from an expression in your coding:
Code:
public static String getValueFromExpression(String expression) {
return (String) FacesContext.getCurrentInstance()
.getApplication().createValueBinding(expression)
.getValue(FacesContext.getCurrentInstance());
}