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

HiddenList control

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 2.0.1
    • 2.1.0
    • extras
    • None

    Description

      Form control does not allow to add fields as same name.
      So we can't send multi parameters using hidden field.

      I think new HiddenList control can solve this issue.

      For example:


      HiddenList hiddenList = new HiddenList("hiddenList");
      hiddenList.addValue("1");
      hiddenList.addValue("2");
      hiddenList.addValue("3");
      form.add(hiddenList);


      Generated HTML:


      <input type="hidden" name="hiddenList" value="1"/>
      <input type="hidden" name="hiddenList" value="2"/>
      <input type="hidden" name="hiddenList" value="3"/>


      Attachments

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: