Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Won't Fix
-
None
-
None
-
None
-
None
Description
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:metadata>
<f:viewParam id="versionParam" name="version" value="#
" required="false"/>
<f:viewParam id="searchString" name="s" value="#
" required="false"/>
</f:metadata>
we can maybe use an annotation directly in the backing bean:
@Named
@RequestScoped
public class Backingbean {
@ViewParam(required=false, name="version")
private String versionString;
@ViewParam(required=false, name="s")
private String searchString;
@PreRenderView
private void dosomeinit()
}