You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@click.apache.org by "Naoki Takezoe (JIRA)" <ji...@apache.org> on 2009/06/04 06:24:07 UTC

[jira] Created: (CLK-558) Binding multi request parameter to Page class field

Binding multi request parameter to Page class field
---------------------------------------------------

                 Key: CLK-558
                 URL: https://issues.apache.org/jira/browse/CLK-558
             Project: Click
          Issue Type: New Feature
          Components: core
            Reporter: Naoki Takezoe


Click can bind request parameters to Page class public fields.
However it can not bind multi parameter to an array or list field.

I propose adding multi parameter binding support to 
ClickServlet#processPageRequestParams()

For example, here is the HTML which send a multi parameter.

<input type="checkbox" name="option" value="1"/>
<input type="checkbox" name="option" value="2"/>
...

Click would bind this parameter to array or list public field
of the Page class such as...

public String[] option;

or

public List<String> option;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-558) Binding multi request parameter to Page class field

Posted by "Naoki Takezoe (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716221#action_12716221 ] 

Naoki Takezoe commented on CLK-558:
-----------------------------------

Hi Malcolm,
I don't have enough time to do it soon, so I'll do it in 2.2.0.

> Binding multi request parameter to Page class field
> ---------------------------------------------------
>
>                 Key: CLK-558
>                 URL: https://issues.apache.org/jira/browse/CLK-558
>             Project: Click
>          Issue Type: New Feature
>          Components: core
>            Reporter: Naoki Takezoe
>
> Click can bind request parameters to Page class public fields.
> However it can not bind multi parameter to an array or list field.
> I propose adding multi parameter binding support to 
> ClickServlet#processPageRequestParams()
> For example, here is the HTML which send a multi parameter.
> <input type="checkbox" name="option" value="1"/>
> <input type="checkbox" name="option" value="2"/>
> ...
> Click would bind this parameter to array or list public field
> of the Page class such as...
> public String[] option;
> or
> public List<String> option;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Commented: (CLK-558) Binding multi request parameter to Page class field

Posted by "Malcolm Edgar (JIRA)" <ji...@apache.org>.
    [ https://issues.apache.org/jira/browse/CLK-558?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12716215#action_12716215 ] 

Malcolm Edgar commented on CLK-558:
-----------------------------------

Sounds good Naoki, please note this 2.1.0 build will be freezing pretty soon. So if you want to include this please do it soon, otherwise we should schedule it for the 2.2.0 release.

regards Malcolm Edgar

> Binding multi request parameter to Page class field
> ---------------------------------------------------
>
>                 Key: CLK-558
>                 URL: https://issues.apache.org/jira/browse/CLK-558
>             Project: Click
>          Issue Type: New Feature
>          Components: core
>            Reporter: Naoki Takezoe
>
> Click can bind request parameters to Page class public fields.
> However it can not bind multi parameter to an array or list field.
> I propose adding multi parameter binding support to 
> ClickServlet#processPageRequestParams()
> For example, here is the HTML which send a multi parameter.
> <input type="checkbox" name="option" value="1"/>
> <input type="checkbox" name="option" value="2"/>
> ...
> Click would bind this parameter to array or list public field
> of the Page class such as...
> public String[] option;
> or
> public List<String> option;

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.