Add a getConvertedRequestParameter method to the Parameters class
-----------------------------------------------------------------
Key: JBSEAM-2801
URL:
http://jira.jboss.com/jira/browse/JBSEAM-2801
Project: JBoss Seam
Issue Type: Feature Request
Components: Core
Environment: any
Reporter: Sylvain Leroux
The current implementation of the Parameters class require two method calls to retrieve a
request parameter. First you need to obtain the request parameters, then to convert the
one you want to use:
Map<String,String[]> paramMap = parameters.getRequestParameters();
int my_value parameters.convertMultiValueRequestParameter(paramMap, "my_param",
Integer.class);
It would be more natural to have a getConvertedRequestParameter(String name,
Class<?> type) method.
This is especially useful to access a request parameter from an EL expression in a jPDL
action.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira