Wicket looks for these and appends their output to the markup of the page. This is so components can reference their own css without the page having to know about it - component reusability.
if you do not want that output in your page markup then remove <wicket:head> tags completely from your border markup.
-Igor
On 12/7/05,
David Leangen <[EMAIL PROTECTED]> wrote:
> if you do not want to have a part of the border head in the page head than
> put that part in the plain html head:
>
> for border:
>
> <html>
> <head>
> <titel>This does not go to the head of page</titel>
> <wicket:head>
> <link rel="Stylesheet" .. this goes to the head of the page .../>
> </wicket:head>
> </head>
> ...
> </html>
Thank you. That's what I thought...
However, even after trying several ways, including what you write above,
even those tags not included in the <wicket:head> section are still
being included.
For example:
Border:
<html>
<head>
<wicket:head>
<title>Border Title</title>
<link wicket:id="css" rel="Stylesheet" type="text/css"
href=""> <script language="_javascript_" type="text/_javascript_"
src=""> </wicket:head>
</head>
<body>
<wicket:border>
<wicket:body/>
</wicket:border>
</body>
</html>
and page...
<html>
<head>
<link rel="Stylesheet" type="text/css" href=""> <script language="_javascript_" type="text/_javascript_"
src=""
<title>Page Title</title>
<wicket:head>
<meta name="description" content="Page description"/>
</wicket:head>
</head>
<body>
<span wicket:id="border">
Some really cool stuff...
</span><!-- wicket:id="border" -->
</body>
</html>
... give this:
<html>
<head>
<link rel="Stylesheet" type="text/css" href=""> <script language="_javascript_" type="text/_javascript_" src=""
<title>Page Title</title>
<meta name="description" content="Page description"/>
<link href="" type="text/css" rel="Stylesheet"/>
<script language="_javascript_" type="text/_javascript_" src=""> </head>
<body>
<span>
Some really cool stuff...
</span><!-- wicket:id="border" -->
</body>
</html>
Is this a bug, then?
Cheers,
Dave
-------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc. Do you grep through log files
for problems? Stop! Download the new AJAX search engine that makes
searching your log files as easy as surfing the web. DOWNLOAD SPLUNK!
http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user