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

WicketTester.clickLink and IndexedParamUrlCodingStrategy don't work together

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Major
    • Resolution: Fixed
    • 1.4-M3
    • 1.4-RC2
    • None
    • None

    Description

      IndexedParamUrlCodingStrategy.appendParameters expects String->String map:
      ....
      while (parameters.containsKey(String.valueOf))
      {
      String value = (String)parameters.get(String.valueOf);
      ...
      but BaseWicketTester.clickLink converts page params to String->String[] map:
      ....
      PageParameters parameters = (PageParameters)getParametersMethod.invoke(
      bookmarkablePageLink, (Object[])null);
      setParametersForNextRequest(parameters.toRequestParameters());
      ...
      And as result we have type cast exception.

      Attachments

        1. patch-WICKET-1794.diff
          3 kB
          Bruno Borges

        Activity

          People

            ivaynberg Igor Vaynberg
            striderapache dennis lucero
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: