It's an odd thing with Tomcat. Do you have an index.html or index.jsp in
your root dir? Remove that and suddenly it works.
See the comments in https://issues.apache.org/jira/browse/WICKET-1205
On 08/06/2010 10:57 AM, PDiefent wrote:
Hello,
I tried to start my Wicket application with the new Tomcat 7.0.0 release and
got a problem with the stylesheet path:
Source HTML:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8"></meta>
<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
<meta http-equiv="pragma" content="no-cache,no-store"></meta>
<meta http-equiv="expires" content="-1"></meta>
<title>WicketTest</title>
<link rel="stylesheet" type="text/css"
href="styles/tabStyles.css"></link>
</head>
<body>
<div wicket:id="tabs" class="tabpanel">[tab panel]</div>
</body>
</html>
Browser HTML:
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/dtds.data/wicket-xhtml1.4-strict.dtd"
xml:lang="en" lang="en">
<head>
<meta http-equiv="Content-Type"
content="text/html;charset=UTF-8"></meta>
<meta http-equiv="cache-control" content="no-cache,no-store"></meta>
<meta http-equiv="pragma" content="no-cache,no-store"></meta>
<meta http-equiv="expires" content="-1"></meta>
<title>WicketTest</title>
<link rel="stylesheet" type="text/css"
href="../styles/tabStyles.css"></link>
The relative Path "styles/tabStyles.css" is changed to
"../styles/tabStyles.css". In Tomcat 5 and 6 relaeses it works fine ...
Any Ideas?
Thanks, Peter