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
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
@PageRoot (optionally an explicit basePath should be possible)
* the page-bean class is automatically used as view-controller
example:
package my.package.pages;
@PageRoot
public final class Pages
{
}
package my.package.pages.registration;
//...
@Named
@RequestScoped
@Page
public class RegistrationStep1 implements ViewConfig
{
public Class<? extends ViewConfig> confirm()
{
//...
return RegistrationStep2.class;
}
}
//will be interpreted as /pages/registration/registrationStep1.xhtml
package my.package.pages.registration;
//...
@Named
@RequestScoped
@Page
public class RegistrationStep2 implements ViewConfig
{
//...
}
//will be interpreted as /pages/registration/registrationStep2.xhtml
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.