[
https://jira.jboss.org/browse/JBAS-8061?page=com.atlassian.jira.plugin.sy...
]
Lincoln Baxter III edited comment on JBAS-8061 at 7/28/10 3:21 PM:
-------------------------------------------------------------------
I'm not sure this is working in M4 -- I'm still getting:
15:11:21,069 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] JSF1005:
Cannot instantiate validator of type integerValidator
When this class is on the classpath, and I try to reference it in a Facelet via the
<f:validator validatorId="integerValidator" /> tag:
-----------------------------------------------------------------------------------------------------------------------------------------------
package com.ocpsoft.socialpm.validator;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
@FacesValidator("integerValidator")
public class IntegerValidator implements Validator
{
@Override
public void validate(final FacesContext context, final UIComponent component, final
Object value) throws ValidatorException
{
//...
}
}
was (Author: lincolnthree):
I'm not sure this is working in M4 -- I'm still getting:
15:11:21,069 SEVERE [javax.enterprise.resource.webcontainer.jsf.application] JSF1005:
Cannot instantiate validator of type integerValidator
When this class is on the classpath:
-----------------------------------------------------------------------------------------------------------------------------------------------
package com.ocpsoft.socialpm.validator;
import javax.faces.application.FacesMessage;
import javax.faces.component.UIComponent;
import javax.faces.context.FacesContext;
import javax.faces.validator.FacesValidator;
import javax.faces.validator.Validator;
import javax.faces.validator.ValidatorException;
@FacesValidator("integerValidator")
public class IntegerValidator implements Validator
{
@Override
public void validate(final FacesContext context, final UIComponent component, final
Object value) throws ValidatorException
{
//...
}
}
Integrate JSF with new Annotation Scanning
------------------------------------------
Key: JBAS-8061
URL:
https://jira.jboss.org/browse/JBAS-8061
Project: JBoss Application Server
Issue Type: Task
Security Level: Public(Everyone can see)
Components: JSF
Affects Versions: 6.0.0.M4
Reporter: Stan Silvert
Assignee: Stan Silvert
Fix For: 6.0.0.M4
Make JSF use the JBossAnnotationProvider from the new scanning lib that Ales just
integrated.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira