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] Reopened: (EXTCDI-58) support for @Inject in converters, validators and phase-listeners
Date Tue, 15 Mar 2011 23:49:29 GMT

     [ https://issues.apache.org/jira/browse/EXTCDI-58?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Gerhard Petracek reopened EXTCDI-58:
------------------------------------

      Assignee: Gerhard Petracek

> support for @Inject in converters, validators and phase-listeners
> -----------------------------------------------------------------
>
>                 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
>            Assignee: Gerhard Petracek
>             Fix For: 0.9.0
>
>
> the qualifier annotation @Advanced should be re-used as marker annotation for marking
jsf converters, validators and phase-listener 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 facesContext, UIComponent uiComponent, Object value)
throws ValidatorException
>   {
>     Violation violation = this.customValidationService.validate(value);
>     //...
>   }
> }

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

Mime
View raw message