Thanks for your replies so far. Maybe I was not clear enough. I will try to explain what I want using an imaginary example.
I create a component for including a datepicker on a webpage. The styling of the datepicker is done with CSS. To seperate the styling and structure I want to use an external style sheet and class attributes. The style sheet needs to be included in the head, but the datepicker component itself is writing somewhere in the body. Also it should not override any other style sheets that are already included in the head. And it should also detect if the same style sheet is already included so that it won't be linked to multiple times if more than one datepicker component is on the webpage. I have the same request for linking javascript.
Am I just asking too much of Tapestry? :) I usually work on server-side programming and think components should work independent.
Robert wrote:
Hi,
Is it possible to let a Tapestry component cause a webpage to include an external javascript and/or css file?
So putting a component on your page will also cause a <script src="...> and <link href="...> in the HEAD section?
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]