Click
  1. Click
  2. CLK-558

Binding multi request parameter to Page class field

    Details

    • Type: New Feature New Feature
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: 3.0.0
    • Component/s: core
    • Labels:
      None

      Description

      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;

      1. CLK-558-test.patch
        11 kB
        Finn Bock
      2. CLK-558.patch
        3 kB
        Md. Jahid Shohel

        Activity

          People

          • Assignee:
            Naoki Takezoe
            Reporter:
            Naoki Takezoe
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:

              Development