On Fri, 2006-02-03 at 10:41 +0100, Juergen Donnerstag wrote:
> you have <wicket:head> before (not inside) whatever other wicket
> component, right?

Not exactly sure what you mean. Here is what I have.

ContentPage (extends GeneralPage, which has no HTML or components):

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en" lang="en">  
    <head>
        <wicket:head>
            <link wicket:id="css" src="#"/>
        </wicket:head>
    </head>

    <body>
        <span wicket:id="border">
            <wicket:child/>
        </span><!-- wicket:id="border" -->

    </body>

</html>

  WebMarkupContainer css = new WebMarkupContainer("css");
  css.add(new AttributeModifier("src", true, new Model("myStyle.css")));
  add(css);

SearchPage (extends ContextPage):

<?xml version="1.0"?>
  <html xmlns="http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en" lang="en">  
  <body>
    <wicket:extend>

        <wicket:child/>

    </wicket:extend>
  </body>
</html>


and finally, IndexPage (extends SearchPage):

<html xmlns:wicket="http://wicket.sourceforge.net/";>

    <head>
        <title>Title</title>
        <link href="styles/pubmed.moz.css" type="text/css"
rel="Stylesheet"/>
    </head>

    <body>
        <wicket:extend>
        </wicket:extend>

    </body>
</html>


BorderPage:

<?xml version="1.0"?>
<html xmlns="http://www.w3.org/1999/xhtml";
xmlns:wicket="http://wicket.sourceforge.net/"; xml:lang="en" lang="en">
  <body>
    <wicket:border>

      <wicket:body/>

    </wicket:border>
  </body>
</html>





-------------------------------------------------------
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://sel.as-us.falkag.net/sel?cmd=lnk&kid=103432&bid=230486&dat=121642
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to