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

PageParameters always non-empty

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Resolved
    • Minor
    • Resolution: Fixed
    • 1.4-RC2
    • 1.4-RC5
    • wicket
    • None
    • Ubuntu 8.10 / Java 1.6 / Firefox 3.0.6

    Description

      Say I mount MyBookmarkablePage like so:

      mount(new IndexedHybridUrlCodingStrategy("/my/bookmarkable",
      MyBookmarkablePage.class));

      where

      public MyBookmarkablePage()

      { (...) }

      public MyBookmarkablePage(PageParameters params) { (...) }

      When I call http://localhost:8080/app/my/bookmarkable (just that plain
      url, no trailing nothing), then I never get into the no-args
      constructor, always in the params one. This because the params object
      comes with "0"="", which I feel is wrong.

      Consequently, params.containsKey("0") returns true - and here I have
      to go and check if the value is not empty.

      Note I'm using IndexedHybridUrlCodingStrategy.

      Attachments

        Activity

          People

            ivaynberg Igor Vaynberg
            frank06 Francisco Treacy
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: