myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mark Struberg (JIRA)" <>
Subject [jira] [Created] (EXTCDI-175) introduce @ViewParam annotation for page beans
Date Thu, 12 May 2011 18:21:48 GMT
introduce @ViewParam annotation for page beans

                 Key: EXTCDI-175
             Project: MyFaces CODI
          Issue Type: New Feature
            Reporter: Mark Struberg

When using the ViewConfig in CODI we not only get type safe navigation but also know the 'connection'
between views and their backing beans. We already support annotations like @PreRenderView
and likes for such beans. 

We should also support the direct annotation of view parameters directly in the backing beans.

instead of declaring the view parameters in the xhtml:
  <f:viewParam id="versionParam" name="version" value="#{backingbean.versionString}" required="false"/>
  <f:viewParam id="searchString" name="s" value="#{backingbean.searchString}" required="false"/>

we can maybe use an annotation directly in the backing bean:
public class Backingbean {
  @ViewParam(required=false, name="version")
  private String versionString;

  @ViewParam(required=false, name="s")
  private String searchString;

  private void dosomeinit() {

This message is automatically generated by JIRA.
For more information on JIRA, see:

View raw message