Robert wrote:
Hi!
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.
There's a patch for this, take a look at
http://issues.apache.org/jira/browse/TAPESTRY-199
It essentially adds a Style component (works like Script)
that gets picked up by the Shell component of a page and gets included in
the styles declaration (at the beggining of the html file).
I haven't tried it, but it's exactly the way i would implement such functionality.
Note that you'll have to download Tapestry source, apply the patch and compile to
get a customized version with this included.
I think that someone has posted a tapestry jar with this included...
Search the archives :)
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]