I'm trying to use the captcha component from tomahawk, <t:captcha>
. Everytime the page loads, the following error appears:
com.sun.facelets.tag.TagException: /tiles/competitionSite.xhtml @112,46 Tag Library supports namespace: http://myfaces.apache.org/tomahawk, but no tag was defined for name: captcha
I think there's something wrong with the libraries. I checked the tomahawk JARs and <t:captcha>
should be supported in Tomahawk 1.1.7 or higher. I used multiple versions (e.g. 1.1.13), but <t:captcha>
never worked. All the other tags like <t:inputText>
are working fine. I also imported the batik-awt-util-1.6-1.jar
, because that's necessary for captchas.
Maybe there's a problem with my other libraries? I can't exchange them easily, because there are many dependencies. Here's a list of them:
batik-awt-util-1.6-1.jar
tomahawk-1.1.13.jar
Thanks for your help!
I just found the mistake. In our CMS the tomahawk.taglib.xml
file will not be deployed dynamically from the included JAR. I just had to create a new entry like this:
<tag>
<tag-name>captcha</tag-name>
<component>
<component-type>org.apache.myfaces.CAPTCHA</component-type>
<renderer-type>org.apache.myfaces.CAPTCHA</renderer-type>
</component>
</tag>
Now I use <t:captcha>
with tomahawk-1.1.7.jar and batik-awt-util-1.6-1.jar.