3 Replies Latest reply on May 16, 2007 10:39 AM by Ben Catherall

    Seam Email and JSTL Functions

    Sean Radford Novice

      Does the message template feature of Seam Email support custom functions?

      I can't see why it shouldn't but in my case it cannot find my function:

      Caused by: javax.el.ELException: Function 'myNS:myFunction' not found
      at com.sun.el.lang.ExpressionBuilder.visit(ExpressionBuilder.java:202)
      at com.sun.el.parser.SimpleNode.accept(SimpleNode.java:149)
      at com.sun.el.lang.ExpressionBuilder.prepare(ExpressionBuilder.java:167)
      at com.sun.el.lang.ExpressionBuilder.build(ExpressionBuilder.java:178)
      at com.sun.el.lang.ExpressionBuilder.createValueExpression(ExpressionBuilder.java:221)
      at com.sun.el.ExpressionFactoryImpl.createValueExpression(ExpressionFactoryImpl.java:81)
      at com.sun.facelets.el.ELText$ELTextVariable.apply(ELText.java:161)
      at com.sun.facelets.compiler.TextInstruction.apply(TextInstruction.java:56)
      at com.sun.facelets.compiler.UIInstructionHandler.apply(UIInstructionHandler.java:84)
      at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
      at com.sun.facelets.tag.CompositeFaceletHandler.apply(CompositeFaceletHandler.java:47)
      at com.sun.facelets.tag.jsf.ComponentHandler.applyNextHandler(ComponentHandler.java:295)
      at com.sun.facelets.tag.jsf.ComponentHandler.apply(ComponentHandler.java:165)
      at com.sun.facelets.compiler.NamespaceHandler.apply(NamespaceHandler.java:49)
      at com.sun.facelets.compiler.EncodingHandler.apply(EncodingHandler.java:25)
      at com.sun.facelets.impl.DefaultFacelet.apply(DefaultFacelet.java:95)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.renderFacelet(FaceletsRenderer.java:149)
      at org.jboss.seam.ui.facelet.FaceletsRenderer.render(FaceletsRenderer.java:112)
      at com.mycompany.server.mail.MailerBean.sendMail(MailerBean.java:84)

      I do have my tag library file defined for the message template and it all works elsewhere in 'standard' views.

      Any ideas?

      Thanks and regards,

      Sean