The method getELContext() is undefined for the type FacesContext
Em um projeto JSF estava encontrando a todo momento os erros
e The method getELContext() is undefined for the type FacesContext
The method getELResolver() is undefined for the type Application
Ainda não encontrei a causa disso, mas consegui resolver.
Eu tinha o código
e troquei porFacesContext context = FacesContext.getCurrentInstance();
Object relatedController = context.getApplication().getELResolver().getValue(context.getELContext(), null, relatedControllerString);
FacesContext context = FacesContext.getCurrentInstance();
Object relatedController = context.getApplication().getVariableResolver().resolveVariable(facesContext, "relatedControllerVariable");
Assim que eu entender a causa edito e posto aqui.
Leave a Reply