Hello,

yes.

web,xml:
 <context-param>
      <param-name>facelets.LIBRARIES</param-name>
      <param-value>/WEB-INF/tags/le.taglib.xml</param-value>
 </context-param>

le.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>
      <namespace>http://www.prosystemsit.de/le</namespace>
      <tag>
            <tag-name>test</tag-name>
            <source>test.xhtml</source>
      </tag>
      <function>
            <function-name>wert</function-name>
            <function-class>
de.prosystemsit.leistungserfassung.controller.Functions</function-class>
            <function-signature>java.lang.String
wertInSpalte(java.lang.String)</function-signature>
      </function>
</facelet-taglib>

Functions.java:
package de.prosystemsit.leistungserfassung.controller;

public class Functions {

  public static String wertInSpalte(String s) {
    return "Hallo Welt"+s;
  }
}

May be this really is the wrong mailing list. But I absolutely don't know
which of the lots of libraries I use is responsible for resolving those.
But since lots of you state that it is not in the responsibility of myFaces
and that it is usually no problem with Facelets, so it will probably be a
problem with JBoss Seam. I'll ask over there.

Regards,

Marcus.





                                                                                
                                                           
                      "Andrew Robinson"                                         
                                                           
                      <andrew.rw.robinson        An:       "MyFaces Discussion" 
<[email protected]>                                 
                      @gmail.com>                Kopie:                         
                                                           
                                                 Thema:    Re: Re: User defined 
LE functions                                               
                      21.07.2006 17:07                                          
                                                           
                      Bitte antworten an                                        
                                                           
                      "MyFaces                                                  
                                                           
                      Discussion"                                               
                                                           
                                                                                
                                                           




Whoops sorry for the errors in my post.

Is your taglib.xml file imported using web.xml
(<param-name>facelets.LIBRARIES</param-name>)?
Could you post the function (or at least the full signature from Java)?

On 7/21/06, Mike Kienenberger <[EMAIL PROTECTED]> wrote:
      On 7/21/06, Andrew Robinson <[EMAIL PROTECTED]> wrote:
      > If you can't get it to work in JSP, have you tried Facelets?

      Read more carefully -- he's already using facelets :)

      > BTW if you use #{}, your variable resolver would have to recognize
      JSP
      > functions, and I am not sure if the myfaces JSF variable resolver
      does.

      Actually, according to the JSF 1.1 spec, value bindings aren't
      allowed
      to support EL  functions.   This would have to be a tomahawk
      extension
      if MyFaces allowed it.


_____________________________________________________________________
prosystems IT GmbH
Anwendungsentwicklung
Postfach 31 51
53021 Bonn (Germany)

Tel: 0228 / 3366 - 3329, Fax: 0228 / 3366 - 73329
mailto:[EMAIL PROTECTED] http://www.prosystemsIT.de
Amtsgericht Bonn - HR B 13189


Reply via email to