Patrick Casey wrote:
>  
> 
>             What's the textbook/preferred/whatever way that a component gets
> its CSS onto a page? So far as I can tell, I can:
> 
>  
> 
>             Put it in a @Shell component, but that Shell only takes one CSS,
> so if a page requires > 1 css file, the shell doesn't work, does it?

Shell can use either "stylesheet" or the "stylesheets" parameters.
Use stylesheets if you want > 1 stylesheet attached to a page.
The other solutions work, as well. :)  Hopefully, it will not always be
a two-step problem.

Robert

> 
>             Manually link them in via any tags, which seems to work for me.
> 
>             Manually add a <script></script> block to your .html file and
> cut/paste the css in.
> 
>             Cut/Paste all component styles into one "master" CSS file and
> then link that one file via the @Shell.
> 
>  
> 
>             All of these approaches though require that the programmer
> (that's me), not only embed the component on the page, but also use one of
> the aforementioned methods to embed that components .css as well (assuming
> the component like contrib.:Palette uses its own CSS). 
> 
>  
> 
>             Is there a way I can set up my page such that the component can
> embed its own css? Or is using a component that has its own css always going
> to be a two step process?
> 
>  
> 
>             --- Pat
> 
>  
> 
>             PS Tapestry 3.0.3.
> 
> 


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to