[ https://issues.apache.org/jira/browse/TAP5-1403?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13868283#comment-13868283
]
Thiago H. de Paula Figueiredo commented on TAP5-1403:
-----------------------------------------------------
Hi, Thomas!
Thanks for the patch! Unfortunately, I couldn't use it because you reformatted the code with
conventions that aren't the same as in the Tapestry code.
The implementation doesn't need "[]" in the parameter name: just have the parameter by an
array and it'll work. Coercion and allowBlank work as usual. Example:
void onFrobFrob(@RequestParameter("something") Integer[] values)
> Add support for Arrays in request parameters
> --------------------------------------------
>
> Key: TAP5-1403
> URL: https://issues.apache.org/jira/browse/TAP5-1403
> Project: Tapestry 5
> Issue Type: Improvement
> Components: tapestry-core
> Affects Versions: 5.2
> Reporter: Raul Montes
> Assignee: Thiago H. de Paula Figueiredo
> Priority: Minor
> Fix For: 5.4
>
> Attachments: [TAP5-1403] Add support for Arrays in request parameters.patch
>
>
> @RequestParameter annotation should work on parameters that are Arrays (obtained throw
Request.getParameters()) so you could have something like this:
> Object onEventName(@RequestParameter("parameterName[]") String[] params) {
> //...
> }
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)
|