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