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] Resolved: (EXTCDI-58) support for @Inject in converters and validators
Date Sun, 19 Sep 2010 00:20:35 GMT

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

Gerhard Petracek resolved EXTCDI-58.
------------------------------------

    Fix Version/s: 1.0.0-SNAPSHOT
       Resolution: Fixed

> 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
>             Fix For: 1.0.0-SNAPSHOT
>
>
> 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