Hi All,
I get an IllegalArgumentException when trying to load an XHTML page with a
Captcha. I use seam-gen and modified the build.xml to include jcaptcha-all.jar.
Any help would be very much appreciated:
Exception:
02:13:37,559 ERROR [STDERR] 09-Nov-2007 02:13:37
com.sun.facelets.FaceletViewHandler handleRenderException
SEVERE: Error Rendering View[/registration.xhtml]
java.lang.IllegalArgumentException: Setter not found for property class
........
........
environment:
Seam 2.0.0.GA
JBoss 4.2.1.GA
JDK 1.5
Linux (Xubuntu Gutsy)
web.xml:
<servlet-name>Seam Resource Servlet</servlet-name>
<servlet-class>org.jboss.seam.servlet.SeamResourceServlet</servlet-class>
<servlet-mapping>
<servlet-name>Seam Resource Servlet</servlet-name>
<url-pattern>/seam/resource/*</url-pattern>
</servlet-mapping>
menu.xhtml:
<s:link view="/registration.xhtml" value="Register" rendered="#{not
identity.loggedIn}"/>
registration.xhtml:
<h:graphicImage value="/seam/resource/captcha?#{captcha.id}" />
<h:outputLabel for="verifyCaptcha">Please enter the letters
shown</h:outputLabel>
<s:div>
<h:inputText id="verifyCaptcha" value="#{captcha.response}"
required="true">
<s:validate/>
</h:inputText>
<s:div class="error"><h:message for="verifyCaptcha" /></s:div>
</s:div>
application.xml:
lib/jcaptcha-all.jar
pages.xml:
<page view-id="/registration.xhtml">
<navigation from-action="#{registration.registerUser}">
<redirect view-id="/registration.xhtml"/>
<redirect view-id="/home.xhtml"/>
package structure:
MyApp.ear
META-INF\application.xml
MyApp.war
lib\jcaptcha-all.jar
Thanks in advance.
Kind Regards,
Shivdeep
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103238#4103238
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103238
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user