You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Don Ngo (Created) (JIRA)" <ji...@apache.org> on 2012/02/17 21:46:57 UTC

[jira] [Created] (WICKET-4415) Multiple execution of the WicketFilter for a single request

Multiple execution of the WicketFilter for a single request
-----------------------------------------------------------

                 Key: WICKET-4415
                 URL: https://issues.apache.org/jira/browse/WICKET-4415
             Project: Wicket
          Issue Type: Bug
    Affects Versions: 1.5.4
         Environment: Java 1.6.0.31
            Reporter: Don Ngo


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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] [Resolved] (WICKET-4415) Multiple execution of the WicketFilter for a single request

Posted by "Igor Vaynberg (Resolved) (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/WICKET-4415?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Igor Vaynberg resolved WICKET-4415.
-----------------------------------

    Resolution: Incomplete
      Assignee: Igor Vaynberg

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.
                
> Multiple execution of the WicketFilter for a single request
> -----------------------------------------------------------
>
>                 Key: WICKET-4415
>                 URL: https://issues.apache.org/jira/browse/WICKET-4415
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 1.5.4
>         Environment: Java 1.6.0.31
>            Reporter: Don Ngo
>            Assignee: Igor Vaynberg
>
> 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>

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira