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

Improve AjaxRequestAttributes' ExtraParameters to accept more than one value for a key

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.0.0-beta3
    • Fix Version/s: 6.0.0
    • Component/s: wicket
    • Labels:
      None

      Description

      currently AjaxRequestAttributes#getExtraParameters() uses Map ,there can be use cases where one needs more than one value for a key,it will be nicer if some other collection or PageParameters can be used so one can associate more than one value to a key .

      thanks !

        Activity

        Hide
        mgrigorov Martin Grigorov added a comment -

        Improved.
        For simple key/value you can still use: extraParams.put("key", value)
        For multivalued keys put the values in a java.util.List or Object[]: extraParams.put("key", Arrays.asList("value1", 123, true)).

        Show
        mgrigorov Martin Grigorov added a comment - Improved. For simple key/value you can still use: extraParams.put("key", value) For multivalued keys put the values in a java.util.List or Object[]: extraParams.put("key", Arrays.asList("value1", 123, true)).

          People

          • Assignee:
            mgrigorov Martin Grigorov
            Reporter:
            vineetsemwal vineet semwal
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development