You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org> on 2010/09/19 02:06:32 UTC
[jira] Created: (EXTCDI-58) support for @Inject in converters and
validators
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.
[jira] Resolved: (EXTCDI-58) support for @Inject in converters and
validators
Posted by "Gerhard Petracek (JIRA)" <de...@myfaces.apache.org>.
[ 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.