Yeah, I know, I also implemented something and It work.  But since it is in
the gotcha part of the wiki, this mean that we "should not do this".  But
since it work, I don't know why...

Marc

On 1/24/07, Otan <[EMAIL PROTECTED]> wrote:

The following works for me:

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd ">
<html xmlns="http://www.w3.org/1999/xhtml"; xmlns:wicket="
http://www.wicketframework.org";>
    <head>
        <title>~</title>
        <wicket:head>
            <script language="javascript" type="text/javascript">
                alert(' Content of the wicket:head gets contributed into
the final page.');
            </script>
        </wicket:head>
    </head>
    <body>
        <wicket:extend>
            This is a child markup and here is its content. Notice that I
have a wicket:head above.
        </wicket:extend>
    </body>
</html>



On 25/01/07, Marc-Andre Houle <[EMAIL PROTECTED] > wrote:

> In the wiki, there is a gotcha that look like this :
> Adding wicket:head to a Page
>
> <wicket:head> is intended for panels and borders only. Do not add this
> to a page.
>
> The problem is : it is exactly what I wanted to do.  I got a child class
> that need to add some css/javascript to the header of the page.  Is it
> because our design is too pour or just that this is not true anymore or what
> else?  I wanted to have a little more detailed about that.
>
> Thanks
>
> Marc
>
> P.S. : I'll make sure to copy the details into the wiki after :)
>
>
>
> -------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
> your
> opinions on IT & business topics through brief surveys - and earn cash
>
> http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to