tapestry-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ron <ron.piter...@gmx.net>
Subject Re: adding css references
Date Wed, 02 Mar 2005 13:50:40 GMT
ציטוט Ramin:
Thanx, this would have been great, only my thinking at the time is 
towards a reusable component and not a working solution.

Something like the body.addScript(...), which can add a css reference 
from each component withit the body.

>I'm a Tapestry newbie, so I don't know much about it ... but I've done
>what you are trying to do using SiteMesh. It allows you to define your
><title>, <head>, <meta>'s, etc in any file and then "mesh" it together
>with your decorator template (which is the equivalent of the Border in
>tapestry I believe) You can use SiteMesh on any page that uses a
>servlet engine (tomcat, jboss, etc.). Its a filter..
>
>google SiteMesh to learn more...
>
>On Wed, 02 Mar 2005 14:36:55 +0100, ron <ron.piterman@gmx.net> wrote:
>  
>
>>I don't really check that:
>>
>>I can add the css to my Shell manually from my Border component,
>>but the css is a part of the component, and I would like the component
>>to add it to the <head>.
>>The component is not part of the Head, and apears somewhere inside the Body.
>>
>>ציטוט Kevin Menard:
>>
>>    
>>
>>>Hi Ron,
>>>
>>>On Mar 2, 2005, at 8:12 AM, ron wrote:
>>>
>>>      
>>>
>>>>The question is again, where, or how, in the component lifecycle I
>>>>can add to the pages "stylesheets" property my Asset ?
>>>>can I do it from the jwc? (best !)
>>>>or from the component's Java Class ?
>>>>        
>>>>
>>>I'm confused, why do you need to access the stylesheet? The browser
>>>will render your component in the page with the stylesheet reference.
>>>So, just use your class/id/whatever css constructs you're going to use
>>>in the component. At render time, everything gets glued together
>>>appropriately.
>>>
>>>      
>>>
>>---------------------------------------------------------------------
>>To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
>>For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
>>
>>
>>    
>>
>
>
>  
>


---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org


Mime
View raw message