public static final Object getUiBundleValue(String key) {
Map propertyMap =
(Map)ADFUtil.resolveExpression(“#{adfBundle['org.xxx.xxx.xxx.xxx.xxxUIBundle']}”);
return propertyMap.get(key);
(Map)ADFUtil.resolveExpression(“#{adfBundle['org.xxx.xxx.xxx.xxx.xxxUIBundle']}”);
return propertyMap.get(key);
}
public static Object resolveExpression(String el) {
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory =
facesContext.getApplication().getExpressionFactory();
ValueExpression valueExp =
expressionFactory.createValueExpression(elContext, el, Object.class);
return valueExp.getValue(elContext);
}
FacesContext facesContext = FacesContext.getCurrentInstance();
ELContext elContext = facesContext.getELContext();
ExpressionFactory expressionFactory =
facesContext.getApplication().getExpressionFactory();
ValueExpression valueExp =
expressionFactory.createValueExpression(elContext, el, Object.class);
return valueExp.getValue(elContext);
}
No comments:
Post a Comment