Getting " All variable resolvers have been deprecated" error message
Hi Experts,
Currently we have an ADF application (using ADF Faces & BC4J) developed on jdeveloper 11.1.2.1. I am getting the following error in the log file
[ERROR] [] [oracle.adf.share.el.VariableResolverELContext] [tid: [ACTIVE].ExecuteThread: '17' for queue: 'weblogic.kernel.Default (self-tuning)'] [userId: 140558] [ecid: 0000012hN6eDSc0Lnyp2iZ01902C001Lc^,0:1] [APP: XXX-application] [URI: /bve/faces/home.jsf] The variable resolver, oracle.adf.model.binding.DCVariableResolverImpl, was used to evaluate expression, data. All variable resolvers have been deprecated. Please consult the documentation for the variable resolver and modify the expression to not depend upon the variable resolver.
I am using the following code to resolve my expression,
ADFContext.getCurrent().getExpressionEvaluator().evaluate(expression);
Is the error due to the above code?
Apart from that can i use the following
JSFUtils.resolveExpression("#{XXXXX}");
which is
public static Object resolveExpression(String expression) {
FacesContext facesContext = getFacesContext();
Application app = facesContext.getApplication();
ExpressionFactory elFactory = app.getExpressionFactory();
ELContext elContext = facesContext.getELContext();
ValueExpression valueExp =
elFactory.createValueExpression(elContext, expression,
Object.class);
return valueExp.getValue(elContext);
}
Can we use the FacesContext and JSF related methods inside the ADF application? If yes will that break any ADF page life cycles?
Thanks