[
https://issues.jboss.org/browse/SEAMFACES-165?page=com.atlassian.jira.plu...
]
Christian Kaltepoth commented on SEAMFACES-165:
-----------------------------------------------
Just a small update for everyone who gets hit by this. I'm currently using another
{{ApplicationFactory}} wrapper as a workaround for this bug:
{code}
public class WeldBugfixApplicationFactory extends ApplicationFactory {
private final ApplicationFactory delegate;
private Application application;
public WeldBugfixApplicationFactory(ApplicationFactory delegate) {
this.delegate = delegate;
}
@Override
public Application getApplication() {
if(application == null) {
application = delegate.getApplication();
}
return application;
}
@Override
public void setApplication(Application application) {
this.application = application;
delegate.setApplication(application);
}
}
{code}
This factory has to be added to your {{faces-config.xml}} like this:
{code}
<?xml version="1.0" encoding="UTF-8"?>
<faces-config ....>
<factory>
<application-factory>com.example.WeldBugfixApplicationFactory</application-factory>
</factory>
</faces-config>
{code}
This works fine for me. Not a very nice workaround but now the injection also works with
MyFaces. :)
@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