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

pass through url coding strategy

    XMLWordPrintableJSON

Details

    • New Feature
    • Status: Closed
    • Major
    • Resolution: Fixed
    • 1.4-M1
    • 1.4-M2
    • wicket
    • None

    Description

      When you mount /path1 it is impossible to server files from your web context in /path1/dir because the mount eats it.

      With the attached PassThroughUrlCodingStrategy and patch to WicketFilter you can "unmount" /path1/dir so that the servlet container can handle it for you even though /path1 is mounted. See also the thread "unmount sub url" on the user list.

      I don't know what the implementations should be of encode/decode/matches (I don't think they're necessary in this case actually, but I could be wrong).

      To use add the following in the application init:

      mount(new QueryStringUrlCodingStrategy("/path1", MyPage.class));
      mount(new PassThroughUrlCodingStrategy("/path1/dir"));

      Regards,
      Sebastiaan

      Attachments

        1. patch.txt
          3 kB
          Sebastiaan van Erk

        Activity

          People

            jcompagner Johan Compagner
            sebster Sebastiaan van Erk
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: