This content has been marked as final.
Show 4 replies
-
1. Re: jboss el and jstl functions issue
atao Jun 7, 2007 8:05 PM (in response to tazman)Not all uses of jstl's fn: function produce an exception.
For exemple:#{fn:length(testFromType)}
works fine.
But I get the same exception with<s:button id="done" value="Done" view="/TestList.xhtml" > <f:param name="lengthTest" value="#{fn:length(testFromType)}"/> </s:button>
and only when I change of tab in a rich:tabPanel (but not when the page is loaded)
-
2. Re: jboss el and jstl functions issue
hstang Jun 7, 2007 8:45 PM (in response to tazman)are you using ear or war packaging? if ear, try placing jsf-facelets.jar in the ear root and add a module entry into application.xml
-
3. Re: jboss el and jstl functions issue
atao Jun 8, 2007 2:47 AM (in response to tazman)Thanks! It works fine.
-
4. Re: jboss el and jstl functions issue
tazman Jun 8, 2007 5:38 AM (in response to tazman)Another solution is to use parameterized value bindings feature of the new JBoss EL. For example, the following expression returns the string length:
#{testFromType.length()}
You can also use other string methods like substring(). See the new "Expression language enhancements" documentation in CVS.
I don't need to use JSTL functions anymore.
tazman