This content has been marked as final.
Show 1 reply
-
1. Re: JSF Composite Component
purecharger Apr 16, 2010 10:44 PM (in response to purecharger)I think I know why this does not work: Seam doesn't play well with JSF 2.0, even though, according to Dan Allen, Seam 2 and JSF 2.0
absolutely
work together (http://seamframework.org/Documentation/DoesSeamWorkWithJSF2).faces-config.xml in seam-gen created projects and the seam examples all specify 1.2 as the version and use FacesViewHandler, a 1.2 class. Attempting to deploy an application with JSF 2.0 jars and specifying 2.0 in faces-config.xml causes this exception:
2010-04-16 11:24:18,249 INFO [javax.enterprise.resource.webcontainer.jsf.config] (Thread-2) Unsanitized stacktrace from failed start... javax.faces.view.facelets.FaceletException: Must have a Constructor that takes in a ComponentConfig at com.sun.faces.facelets.tag.AbstractTagLibrary$UserComponentHandlerFactory.<init>(AbstractTagLibrary.java:289) at com.sun.faces.facelets.tag.AbstractTagLibrary.addComponent(AbstractTagLibrary.java:519) ... Caused by: java.lang.NoSuchMethodException: org.jboss.seam.ui.handler.CommandButtonParameterComponentHandler.<init>(javax.faces.view.facelets.ComponentConfig) at java.lang.Class.getConstructor0(Class.java:2706)
I've filed a defect on JBoss JIRA: