Sure, it's possible to add a (custom) component to the page that does this, but the trick here (at least for the javascript thing) is that a component would be allowed to write stuff on other parts of the page, e.g. the header part.
Regards,
Eelco
Martijn Dashorst wrote:
Hi,
In order to be able to support the HTMLArea component, and in order to have a default template for pages I have the following question:
I want to be able to both render in the <head> and in the <body> tags. How can I make this happen?
An example: each page should include the same stylesheet. in order not to have to edit all pages when the stylesheet changes name, or
another stylesheet is needed, I want to include it in a base class/component which renders my menu (like the CD-app's simple border).
So for instance:
<html>
<head>
<!-- start content from component foo -->
<script> <!-- ..... --> </script>
<!-- end content from component foo -->
</head>
<body>
<span id="wcn-[foo]">
<!-- ..... -->
<span id="wcn-[body]"/>
</span>
</body>
</html>
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now. http://productguide.itmanagersjournal.com/
_______________________________________________
Wicket-develop mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/wicket-develop
