[seam-issues] [JBoss JIRA] (JBSEAM-4637) Seam does not work with JSF 2.0 faces-config.xml
eric mullo (JIRA)
jira-events at lists.jboss.org
Sat Feb 4 11:13:49 EST 2012
[ https://issues.jboss.org/browse/JBSEAM-4637?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12664265#comment-12664265 ]
eric mullo commented on JBSEAM-4637:
------------------------------------
I canot use 2.3 ALPHA. I get this JBIDE-10749
Is the fix included in the ALPHA? Will the JBIDE-10749 still show with the snapshot?
Thanks
/Eric
> Seam does not work with JSF 2.0 faces-config.xml
> ------------------------------------------------
>
> Key: JBSEAM-4637
> URL: https://issues.jboss.org/browse/JBSEAM-4637
> Project: Seam 2
> Issue Type: Bug
> Components: JSF Integration
> Affects Versions: 2.2.1.CR1
> Reporter: Ryan Nideffer
> Assignee: Marek Novotny
> Labels: jsf2, seam-ui
> Fix For: 2.3.0.BETA1
>
>
> I am attempting to use JSF 2.0 in my Seam application for, among other benefits, composite components. I am able to upgrade the jsf-api.jar and jsf-impl.jar, remove jsf-facelets.jar and my application functions fine, however I am still running in JSF 1.2 mode due to this faces-config.xml:
> <faces-config version="1.2"
> xmlns="http://java.sun.com/xml/ns/javaee"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/web-facesconfig_1_2.xsd">
> <view-handler>com.sun.facelets.FaceletViewHandler</view-handler>
> According to thread comments from a Mojarra developer and the Release Notes for Mojarra 2, all thats needed is to remove the view-handler and reference v2.0 in faces-config.
> http://forums.java.net/jive/message.jspa?messageID=373539
> https://javaserverfaces.dev.java.net/nonav/rlnotes/2.0.1/releasenotes.html
> As soon as I do this though, I get the following exception when my application is deployed:
> 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)
> ...
> 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)
> According to Dan Allen, Seam 2 and JSF 2 work together beautifully:
> http://seamframework.org/Documentation/DoesSeamWorkWithJSF2
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the seam-issues
mailing list