Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-2172

PageParameters construced with keyValuePairs does not handle array values

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC3
    • wicket
    • None

    Description

      The PageParameters constructor that takes a "keyValuePairs" argument does
      not convert repeated keys into an array of values. For example:

      // specify three comma delimited values for the "a" parameters
      PageParameters parameters = new PageParameters("a=1,a=2,a=3");
      String[] a = parameters.getStringArray("a");
      assertEquals(3, a.length); // fails because a.length == 1
      

      Issue first described on the user's list:
      http://www.nabble.com/PageParameters-with-String-array-question-to22540294.html

      Attachments

        Activity

          People

            jdonnerstag Juegen Donnerstag
            bradfritz Brad Fritz
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: