Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 65615 invoked from network); 19 Aug 2010 16:22:40 -0000 Received: from unknown (HELO mail.apache.org) (140.211.11.3) by 140.211.11.9 with SMTP; 19 Aug 2010 16:22:40 -0000 Received: (qmail 3908 invoked by uid 500); 19 Aug 2010 16:22:40 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 3866 invoked by uid 500); 19 Aug 2010 16:22:39 -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 3856 invoked by uid 99); 19 Aug 2010 16:22:39 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:22:39 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.22] (HELO thor.apache.org) (140.211.11.22) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 19 Aug 2010 16:22:37 +0000 Received: from thor (localhost [127.0.0.1]) by thor.apache.org (8.13.8+Sun/8.13.8) with ESMTP id o7JGMGSL004684 for ; Thu, 19 Aug 2010 16:22:16 GMT Message-ID: <31860946.449281282234936133.JavaMail.jira@thor> Date: Thu, 19 Aug 2010 12:22:16 -0400 (EDT) From: "Gerhard Petracek (JIRA)" To: dev@myfaces.apache.org Subject: [jira] Resolved: (EXTCDI-46) request-lifecycle callbacks via view definitions In-Reply-To: <17089511.448731282233196167.JavaMail.jira@thor> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/EXTCDI-46?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek resolved EXTCDI-46. ------------------------------------ Fix Version/s: 1.0.0-SNAPSHOT Resolution: Fixed > request-lifecycle callbacks via view definitions > ------------------------------------------------ > > Key: EXTCDI-46 > URL: https://issues.apache.org/jira/browse/EXTCDI-46 > Project: MyFaces CODI > Issue Type: New Feature > Components: JEE-JSF12-Module, JEE-JSF20-Module > Reporter: Gerhard Petracek > Fix For: 1.0.0-SNAPSHOT > > > EXTCDI-11 is based on the event system of cdi > that means esp. in large applications there might be different kinds of possible problems. > (currently there might be also issues in combination with @View and custom scopes) > it should be possible to annotate methods with @BeforePhase and @AfterPhase (methods without parameters or with javax.faces.event.PhaseEvent as parameter). > they will be invoked if the bean is used as page-bean for the current view (see typesafe view definitions) > @BeforePhase(PhaseId.RESTORE_VIEW) as well as @BeforePhase(PhaseId.ANY_PHASE) aren't supported. > (in case of restore view you have to use phase-observer-methods (see EXTCDI-11)) > examples: > @BeforePhase(RENDER_RESPONSE) > protected void preRendering(PhaseEvent phaseEvent) > { > //... > } > @AfterPhase(PhaseId.UPDATE_MODEL_VALUES) > protected void postModelUpdate() > { > //... > } -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.