I use:
- Tomcat 6.0
- Jsf 1.2 - Running Mojarra
- Tomahawk 1.1.9
I imported taglib
<%@ taglib uri="http://java.sun.com/jsp/jstl/functions" prefix="fn" %>
when i call:
<h:outputText value="#{fn:indexOf('ciao','i')}"></h:outputText>
The output is 1
when i use
<t:outputText value="#{fn:indexOf('ciao','i')}"></t:outputText>
it throws a server exception, for example, there are some problems with a link to the right library.
javax.el.ELException: Function 'fn:indexOf' not found at org.apache.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:171) at org.apache.el.parser.SimpleNode.accept(SimpleNode.java:145) at org.apache.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:133) at org.apache.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:147)
Any hint? Thank you all for your help :)
source share