Topic
No replies
SystemAdmin
SystemAdmin
64 Posts
ACCEPTED ANSWER

Pinned topic Problems with VariableResolver in JSF1.2 on Websphere V8.0.

‏2012-11-12T09:20:39Z |
Hello,

We customized some jsf pages like this:
<cw:outputText value="#{this.username}"/>

A VariableReolver has been created to simply replace the 'this' by the bean name.
'username' is just a property of the bean and cw:outputText is simply a custom component inheriting from standard HtmlOutputText.
This resolver is defined in the faces-config.xml in the application deployed :

<variable-resolver>com.cwsoft.commons.faces.application.VariableResolverImplCW</variable-resolver>

This works perfectly with Websphere V7, but with Websphere v8 we get the following error:

09/11/12 17:13:07:942 CET 00000048 webapp E com.ibm.ws.webcontainer.webapp.WebApp logServletError SRVE0293E: Servlet Error-[/policyenforcer/pages/pwdCredentialsUpdat
ePage.jsp]: com.ibm.ws.jsp.translator.JspTranslationException: JSPG0227E: Exception caught while translating /policyenforcer/pages/pwdCredentialsUpdatePage.jsp:
/policyenforcer/pages/pwdCredentialsUpdatePage.jsp(58,5) --> JSPG0122E: Unable to parse EL function #{this.username}.

at com.ibm.ws.jsp.translator.visitor.validator.ELValidator.validateElFunction(ELValidator.java:500)
at com.ibm.ws.jsp.translator.visitor.validator.ELValidator.validateELExpression(ELValidator.java:122)
at com.ibm.ws.jsp.translator.visitor.validator.ELValidator.validateELExpression(ELValidator.java:149)
It seems that the JSP pages are validated before the use of resolver.
Could it be possible to either by-pass this validation or to execute it after the execution of the VariableResolver ?
Remark that we have choosen the JSF implementation of SunRI1.2 in Websphere.

Thanks in advance for your help,
Vincent

PS: I attached here the VariableResolver.