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

IndexedParamUrlCodingStrategy creates a parameter in PageParameters when there is no parameter in the URL

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Minor
    • Resolution: Fixed
    • 1.3.0-beta4
    • 1.3.0-rc1
    • wicket
    • None

    Description

      If you mount a page like this:
      mount(new IndexedParamUrlCodingStrategy("/page", MyPage.class));

      MyPage is a class with a contructor that accepts PageParameters.

      When you try to access the page with any of these URLs:
      http://myserver/page/
      or
      http://myserver/page

      the PageParameters contains a single parameter "0" / "".

      But when you try:
      http://myserver/page//
      or
      http://myserver/page///

      then the PageParameters is empty.

      Attachments

        Activity

          People

            jcompagner Johan Compagner
            lorban Ludovic Orban
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: