You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@tapestry.apache.org by Alexey Romanchuk <ui...@gorodok.net> on 2005/02/08 07:45:10 UTC
assets
hello!
can i define "global" asset, that can be visible to all pages.
like use default css to all pages and may be override it to some page...
thanx!
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org
Re: assets
Posted by Erik Hatcher <er...@ehatchersolutions.com>.
On Feb 8, 2005, at 1:45 AM, Alexey Romanchuk wrote:
> hello!
> can i define "global" asset, that can be visible to all pages.
> like use default css to all pages and may be override it to some
> page...
My recommendation is to put the "global" asset with your custom border
component, and add a parameter to that component to allow overriding
(setting the initial-value of it to the default global one).
Make sense?
But in general, an asset (more precisely, an IAsset) is simply an
object. Create it wherever you like (in your Global, for example) and
pages/components can get at it through OGNL expressions easily.
Erik
---------------------------------------------------------------------
To unsubscribe, e-mail: tapestry-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tapestry-user-help@jakarta.apache.org