Hi Ppl, I am still trying to make it run. I read these docs. Now I'm getting the error:
org.apache.jasper.JasperException: Unable to compile class for JSP (...) *root cause* java.lang.NullPointerException java.util.Hashtable.containsKey(Hashtable.java:307) org.apache.jasper.compiler.TagLibraryInfoImpl.parseTLD(TagLibraryInfoImpl.java:258) org.apache.jasper.compiler.TagLibraryInfoImpl.<init>(TagLibraryInfoImpl.java:163) org.apache.jasper.compiler.Parser.parseTaglibDirective(Parser.java:420) org.apache.jasper.compiler.Parser.parseDirective(Parser.java:476) org.apache.jasper.compiler.Parser.parseElements(Parser.java:1426) org.apache.jasper.compiler.Parser.parse(Parser.java:133) org.apache.jasper.compiler.ParserController.doParse(ParserController.java:216) My JSP, teste.jsp: <%@ page session="false" contentType="text/html;charset=utf-8"%> <%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix= "f"%> <%@ taglib uri="http://myfaces.apache.org/tomahawk" prefix="t"%> <%@ taglib uri="/META-INF/el.taglib.xml" prefix="teste" %> <h:panelGrid id="header_group1" columns="2" styleClass="pageHeader1"> <t:outputLabel value="${teste:redireciona('01','01')}"></t:outputLabel> </h:panelGrid> my /META-INF/el.taglib.xml: <?xml version="1.0"?> <!DOCTYPE facelet-taglib PUBLIC "-//Sun Microsystems, Inc.//DTD Facelet Taglib 1.0//EN" "facelet-taglib_1_0.dtd"> <facelet-taglib> <namespace>http://teste</namespace> <function> <function-name>redireciona</function-name> <function-class>xxx.web.plataforma.menu.MenuRedireciona</function-class> <function-signature> java.lang.Object redireciona(java.lang.String, java.lang.String) </function-signature> </function> </facelet-taglib> What is this error? Thank you for help. Paulo Angelo On Fri, May 30, 2008 at 3:19 PM, Mike Kienenberger <[EMAIL PROTECTED]> wrote: > > https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-function > > https://facelets.dev.java.net/nonav/docs/dev/docbook.html#taglib-create-function > > On 5/30/08, Paulo Angelo <[EMAIL PROTECTED]> wrote: > > Hi all, > > > > Where can I get more docs about the first option? > > > > Thanx, > > > > PA > > > > > > On Thu, May 29, 2008 at 5:35 PM, simon <[EMAIL PROTECTED]> wrote: > > > > > > > > However if you definitely want to do this, then there are two options. > > > > > > (1) > > > With JSF1.2 (or JSF1.1+facelets) you can register a static method with > > > the EL engine, then call it from el. So for example, you could write a > > > method > > > public static void invokeMethod(MyBean bean, int param) > > > then invoke it from your page: > > > #{myns:invokeMethod(bean, 1)} > > > > > > > > > >

