Details

    • Type: New Feature New Feature
    • Status: Resolved
    • Priority: Minor Minor
    • Resolution: Fixed
    • Affects Version/s: 2.0.1
    • Fix Version/s: 2.1.0
    • Component/s: extras
    • Labels:
      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"/>


        Activity

        Naoki Takezoe created issue -
        Naoki Takezoe made changes -
        Field Original Value New Value
        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"/>
        ----

        How do you think?
        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"/>
        ----
        Naoki Takezoe made changes -
        Assignee Naoki Takezoe [ takezoe ]
        Naoki Takezoe made changes -
        Status Open [ 1 ] In Progress [ 3 ]
        Henri Yandell made changes -
        Project Import Fri Mar 20 14:11:32 PDT 2009 [ 1237583492744 ]
        Naoki Takezoe made changes -
        Status In Progress [ 3 ] Resolved [ 5 ]
        Fix Version/s 2.0.2 [ 12313731 ]
        Resolution Fixed [ 1 ]
        Bob Schellink made changes -
        Fix Version/s 2.1.0 [ 12313730 ]
        Fix Version/s 2.0.2 [ 12313731 ]

          People

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

            Dates

            • Created:
              Updated:
              Resolved:

              Development