Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 41884 invoked from network); 15 Mar 2011 23:49:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 15 Mar 2011 23:49:51 -0000 Received: (qmail 53505 invoked by uid 500); 15 Mar 2011 23:49:51 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 53466 invoked by uid 500); 15 Mar 2011 23:49:51 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 53459 invoked by uid 99); 15 Mar 2011 23:49:51 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 23:49:51 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED,T_RP_MATCHES_RCVD X-Spam-Check-By: apache.org Received: from [140.211.11.116] (HELO hel.zones.apache.org) (140.211.11.116) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Mar 2011 23:49:50 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id 9A7F53ABE05 for ; Tue, 15 Mar 2011 23:49:29 +0000 (UTC) Date: Tue, 15 Mar 2011 23:49:29 +0000 (UTC) From: "Gerhard Petracek (JIRA)" To: dev@myfaces.apache.org Message-ID: <1372592359.5519.1300232969629.JavaMail.tomcat@hel.zones.apache.org> Subject: [jira] Reopened: (EXTCDI-58) support for @Inject in converters, validators and phase-listeners MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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