[seam-issues] [JBoss JIRA] Commented: (SEAMFACES-165) @Inject for Validators doesn't work with MyFaces

Christian Kaltepoth (JIRA) jira-events at lists.jboss.org
Mon Jun 6 11:29:00 EDT 2011


    [ https://issues.jboss.org/browse/SEAMFACES-165?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12606632#comment-12606632 ] 

Christian Kaltepoth commented on SEAMFACES-165:
-----------------------------------------------

This pull request shows one way to fix this issue. Instead of getting the current {{ApplicationFactory}} and setting the {{SeamApplicationWrapper}} via {{setApplication()}} this patch registers a custom {{ApplicationFactory}} that handles the creation of the Application wrapper. This way we won't be affected by WELD-913 any more.

https://github.com/seam/faces/pull/39

I think this is the most elegant solution for this issue.

> @Inject for Validators doesn't work with MyFaces
> ------------------------------------------------
>
>                 Key: SEAMFACES-165
>                 URL: https://issues.jboss.org/browse/SEAMFACES-165
>             Project: Seam Faces
>          Issue Type: Bug
>          Components: Validation & Conversion
>    Affects Versions: 3.0.1
>         Environment: Tomcat 7.0.8, MyFaces 2.0.5, Weld 1.1.0
>            Reporter: Christian Kaltepoth
>
> @Inject doesn't work for validators when using MyFaces. The fields are always null.
> If I run the application with Mojarra instead of MyFaces everything works fine.
> I'm note completely sure if it is a Seam Faces or a MyFaces issue.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the seam-issues mailing list