Wicket
  1. Wicket
  2. WICKET-4415

Multiple execution of the WicketFilter for a single request

    Details

    • Type: Bug Bug
    • Status: Resolved
    • Priority: Major Major
    • Resolution: Incomplete
    • Affects Version/s: 1.5.4
    • Fix Version/s: None
    • Component/s: None
    • Labels:
      None
    • Environment:
      Java 1.6.0.31

      Description

      Considering a simple web page for the classic Hello World Wicket Application as shown below:

      <?xml version="1.0"?>
      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
      "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
      <html xmlns="http://www.w3.org/1999/xhtml"
      xmlns:wicket="http://wicket.apache.org/" xml:lang="en" lang="en">
      <head>
      <wicket:link>
      <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
      </wicket:link>
      </head>
      <body>
      <div>
      Hello <span wicket:id="subject">world</span>
      </div>
      </body>
      </html>

      Upon processing this page, the WicketFilter:doFilter method is excuted multiple times (3 to be exact) for a single request. Why? Is this a feature or a bug?

      Removing the lines below will then result in a single execution of the WicketFilter:doFilter method for every request.
      <wicket:link>
      <link rel="stylesheet" href="screen.css" type="text/css" media="screen" />
      </wicket:link>

        Activity

        Hide
        Igor Vaynberg added a comment -

        use the mailing list for these kinds of questions, not an issue tracker.

        your filter is executing again because the url to the css resource is mapped to the filter's url space.

        Show
        Igor Vaynberg added a comment - use the mailing list for these kinds of questions, not an issue tracker. your filter is executing again because the url to the css resource is mapped to the filter's url space.

          People

          • Assignee:
            Igor Vaynberg
            Reporter:
            Don Ngo
          • Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development