Uploaded image for project: 'Click'
  1. Click
  2. CLK-558

Binding multi request parameter to Page class field

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Open
    • Major
    • Resolution: Unresolved
    • None
    • 3.0.0
    • core
    • 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;

      Attachments

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

        Activity

          People

            takezoe Naoki Takezoe
            takezoe Naoki Takezoe
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated: