myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Gerhard Petracek (JIRA)" <...@myfaces.apache.org>
Subject [jira] Created: (EXTCDI-58) support for @Inject in converters and validators
Date Sun, 19 Sep 2010 00:06:32 GMT
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.


Mime
View raw message