You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@wicket.apache.org by PDiefent <pd...@csc.com> on 2010/08/06 10:57:17 UTC

Tomcat 7 stylesheet problem

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
-- 
View this message in context: http://apache-wicket.1842946.n4.nabble.com/Tomcat-7-stylesheet-problem-tp2316068p2316068.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


RE: Tomcat 7 stylesheet problem

Posted by Alex Rass <ar...@itbsllc.com>.
Try posting that in the Tomcat forums. 7 is still an early beta. Could be
just a bug or a config issue.

- Alex

-----Original Message-----
From: PDiefent [mailto:pdiefent@csc.com] 
Sent: Friday, August 06, 2010 4:57 AM
To: users@wicket.apache.org
Subject: Tomcat 7 stylesheet problem


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
-- 
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Tomcat-7-stylesheet-problem-tp231
6068p2316068.html
Sent from the Wicket - User mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org


Re: Tomcat 7 stylesheet problem

Posted by Thies Edeling <te...@gmail.com>.
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
>