chkal/pf-issue-test — Issue #3: Parameter ids for further definition like optionallity
Author: chkal
Created: 2012-03-06 07:12:49+00:00
State: open

Originally filed by **christia...@gmail.com** on 2011-05-20T17:45:54

Google Code issue: http://code.google.com/p/prettyfaces/issues/detail?id=105

within a pattern it should be able to just define an id for a parameter and specify the structure of the parameter in subtags like this:

#{bean.getViewPath}

The pattern-tag should support a light version of regex to be able to define optional parts. If the uri fits the pattern it should be parsed and the values are mapped to the defined ids. Then it could be possible to define a parameter specific pattern and if no value is mapped to a param id it the default value should be mapped with the param id. this param values should then be injected into any context within the ELcontext.

This is just an idea and the given syntax will probably rise other issues but i hope that such a feature(optional parameter definition with default values) will be released soon!