in the child do this
<head>
<wicket:head>
blah
</wicket:head>
</head>

<head> tags are not really necessary btw

-Igor


On 3/27/06, Andrew Strickland <[EMAIL PROTECTED]> wrote:
http://www.wicket-wiki.org.uk/wiki/index.php/Markup_inheritance

The example does not work.  When I try to run the example I get the error:

The component(s) below failed to render: .... Label

I'm trying to do exactly what this page claims wicket supports.  Nothing of the child outside the wicket: extend gets passed through to the parent.  I can not just add another head inside the wicket: extend.  I need to be able to put code in the head of the parent and more code in the head of the child.

Here is a snippet of the code we're trying to write:

parent:


<html>
<head>
  <link rel="Stylesheet" href="" type="text/css" media="screen"></link>
     <link rel="Stylesheet" href="" type="text/css" media="print"></link>
</head>
<body>
  <div class="coverPage" id="CoverPageId">
   <H3>
    User Name: <span wicket:id="coverUserName" />
   </H3>
  </div>
  <wicket:child />
</body>
</html>


child:


<head>
<link rel="Stylesheet" href="" type="text/css" media="screen"></link>
</head>
<wicket:extend>
<a wicket:id="trailLink">[Trail Link]</a>
<br />
</wicket:extend>

The problem is that the head of the child is never rendered as part of the parent.  Any help is appreciated.


________________________________

Reply via email to