support for @Inject in converters and validators
------------------------------------------------
Key: EXTCDI-58
URL: https://issues.apache.org/jira/browse/EXTCDI-58
Project: MyFaces CODI
Issue Type: New Feature
Components: JEE-JSF12-Module, JEE-JSF20-Module
Reporter: Gerhard Petracek
the qualifier annotation @Advanced should be re-used as marker annotation for
marking jsf converters and validators which should benefit from dependency
injection.
example in combination with jsf2:
@Advanced
@FacesValidator("...")
public class DependencyInjectionAwareValidator implements Validator
{
@Inject
private CustomValidationService customValidationService;
public void validate(FacesContext ctx, UIComponent component, Object value)
throws ValidatorException
{
Violation violation = this.customValidationService.validate(value);
//...
}
}
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.