HI,
We are using the following server and technologies in our application.
IBM Websphere - WAS 8.0
JSF - 2.0
Rich Faces - 4.0
Added the mojarro 2.x shared library in the shared library references and pointed to the web application.
Below is the scenario:
Currently we are facing this following issue:
We have defined the namespace in one
java file.
ALLibrary.java (xmlns:ufn=http://abc.com/jsf/functions). Like custom component, this is a custom library defined.
ALFunctions.java--->Contains all public static methods which can be called frm outside.
In the xhtml, we are using the namespace and trying to use the functions inside the java class.
<xmlns:ufn=http://abc.com/jsf/functions>
Using the namespace trying to invoke the public static method (getActualLink())
This code is working with jsf1.2/was 8.0 environment.
With jsf2.0 the namespace itself is not getting recognized in WAS 8.0 environment.
The same is working with
jboss 6.0.
Can anyone of you help me in identifying what else is required to recognize the EL's?
Below is the exception telling that its unable to recognize the namespace.
We have added the Mojarra 2.0.3(jsf-api and jsf-impl) in the shared library reference.
Error Page Exception
SRVE0260E: The server cannot use the error page specified for your application to handle the Original Exception printed below.
Original Exception:
Error Message: javax.servlet.ServletException: /WEB-INF/pages/horizontal_menu.xhtml @160,108 value="#{ufn:getActualLink(MenuBean.tiEwaLink)}" Function 'ufn:getActualLink' not found
Error Code: 500
Target
Servlet: com.ibm.ws.webcontainer.extension.DefaultExtensionProcessor
Error Stack:
javax.faces.view.facelets.TagAttributeException: /WEB-INF/pages/horizontal_menu.xhtml @160,108 value="#{ufn:getActualLink(MenuBean.tiEwaLink)}" Function 'ufn:getActualLink' not found
at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:398)
at com.sun.faces.facelets.tag.TagAttributeImpl.getValueExpression(TagAttributeImpl.java:348)