This has come up multiple times now, and many possible solutions have surfaced. It would be extremely convenient if Tapestry provided a way to include style information and hook it up with components (and hence, pages) similar to what the @Script component currently allows.

http://issues.apache.org/jira/browse/TAPESTRY-201 contains my solution to the problem. Although not including all of the aforementioned functionality, I feel that it's very useful. I can't say if it'll work with Tapestry 4.0, and the patch should definitely not be applied to anything at all since it alters the framework build file. (Minor mistake on my part.) But it might be worth taking a look at it.

I'll look into this during the next few days and see what I can come up with. Allowing Tapestry to handle CSS in a simple, efficient, and built-in way would be a huge for the project IMHO.

-Filip

Tomáš Drenčák wrote:
Hi,
I'd like to ask how can I include a css file into a component or even
a page. I use own Border component with Shell. Stylesheets could be
imported there, but what if I want to include css specific to page or
component?

thanks
        tomas

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to