Hello
We migrate a web application that is deployed on a Tomcat 5 application server with a JVM 1.4 and JSF 1.1 to a JBoss 4 application server, a JVM 1.6 and JSF 1.2.
In this application, we use Facelets custom function for make string concatenation in a ouputText tag.
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:t="http://myfaces.apache.org/tomahawk"
xmlns:myaudit="http://mycustomtag"
>
....
<h:commandButton class="bouton" id="boutton1"
value="#{monBean.value}"
actionListener="#{monBean.doAction}">
</h:commandButton>
....
<h:outputText value="#{<my_resource_bundle>[mycustomtag:concat(chaine1,chaine2)]}" />
mycustomtag.taglib.xml
<!DOCTYPE facelet-taglib PUBLIC
"-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN"
"http://java.sun.com/dtd/facelet-taglib_1_0.dtd">
<facelet-taglib xmlns="http://java.sun.com/JSF/Facelet">
<namespace>http://mycustomtag</namespace>
<function>
<function-name>concat</function-name>
<function-class>com.MaClasseUtil</function-class>
<function-signature>
java.lang.String concat(java.lang.String, java.lang.String)
</function-signature>
</function>
</facelet-taglib>
In the web.xml i have this
<context-param>
<param-name>facelets.LIBRARIES</param-name>
<param-value>/WEB-INF/tomahawk.taglib.xml; /WEB-INF/mycustomtag.taglib.xml</param-value>
</context-param>
the first load of my page, my tag is working properly.
But once I click on my button (it's a submit), my page no longer works, and I get an exception wich say's :
javax.el.ELException: /user/profilDetail.jsp @252,91 value="#{referentielLabels[montag:concat('profil.typeDonnee.', typeDonnee)]}": Function 'mycustomtag:concat' not found
I saw a number of lifts have been warning about JBoss facelets and EL function. Does someone have an answer ?
thx !