Return-Path: Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: (qmail 41964 invoked from network); 6 Feb 2011 03:32:59 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 6 Feb 2011 03:32:59 -0000 Received: (qmail 11225 invoked by uid 500); 6 Feb 2011 03:32:59 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 10820 invoked by uid 500); 6 Feb 2011 03:32:55 -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 10808 invoked by uid 99); 6 Feb 2011 03:32:54 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 06 Feb 2011 03:32:54 +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; Sun, 06 Feb 2011 03:32:51 +0000 Received: from hel.zones.apache.org (hel.zones.apache.org [140.211.11.116]) by hel.zones.apache.org (Postfix) with ESMTP id AF911192C44 for ; Sun, 6 Feb 2011 03:32:30 +0000 (UTC) Date: Sun, 6 Feb 2011 03:32:30 +0000 (UTC) From: "Gerhard Petracek (JIRA)" To: dev@myfaces.apache.org Message-ID: <732989226.2321.1296963150715.JavaMail.tomcat@hel.zones.apache.org> In-Reply-To: <19611201.1521295194723450.JavaMail.jira@thor> Subject: [jira] Resolved: (EXTCDI-125) pagebeans as package based inline view-configs 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-125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Gerhard Petracek resolved EXTCDI-125. ------------------------------------- Resolution: Fixed Fix Version/s: 0.9.3 > pagebeans as package based inline view-configs > ---------------------------------------------- > > Key: EXTCDI-125 > URL: https://issues.apache.org/jira/browse/EXTCDI-125 > Project: MyFaces CODI > Issue Type: Improvement > Components: JEE-JSF12-Module, JEE-JSF20-Module > Reporter: Gerhard Petracek > Fix For: 0.9.3 > > > it should be possible to use @Page directly at page-beans. > rules: > * if @Page is used at a class which also hosts @Named or @ManagedBean, there shouldn't be a veto > * instead of nested classes btw. interfaces one part of the package info should be used > * in the root package there has to be a marker class with the annotation @InlineViewConfigRoot(optionally an explicit basePath should be possible) > * the page-bean class is automatically used as view-controller > example 1: > package my.package.pages; > @InlineViewConfigRoot > public final class Pages > { > } > package my.package.pages.registration; > //... > @Named > @RequestScoped > @Page > public class RegistrationStep1 implements ViewConfig > { > public Class confirm() > { > //... > return RegistrationStep2Page.class; > } > } > //will be interpreted as /pages/registration/registrationStep1.xhtml > example 2: > package my.package.pages; > @InlineViewConfigRoot(basePath = "/pages/", pageBeanPostfix = "Page") > public final class Pages > { > } > package my.package.pages.registration; > //... > @Named > @RequestScoped > @Page > public class RegistrationStep2Page implements ViewConfig > { > //... > } > //will be interpreted as /pages/registrationStep2.xhtml > example 3: > package my.package.pages; > @InlineViewConfigRoot(basePath = "/*", pageBeanPostfix = "Page") > public final class Pages > { > } > package my.package.pages.registration; > //... > @Named > @RequestScoped > @Page > public class RegistrationStep3Page implements ViewConfig > { > //... > } > //will be interpreted as /registration/registrationStep3.xhtml > example 4: > package my.package.pages; > @InlineViewConfigRoot(basePath = "/views/*") > public final class Pages > { > } > package my.package.pages.registration; > //... > @Named > @RequestScoped > @Page > public class RegistrationStep4 implements ViewConfig > { > //... > } > //will be interpreted as /views/registration/registrationStep4.xhtml -- This message is automatically generated by JIRA. - For more information on JIRA, see: http://www.atlassian.com/software/jira