sorry - not the final url but the final style string.

On 7/28/06, Mike Oestereter <[EMAIL PROTECTED]> wrote:
Thanks for your reply.

I think with your suggestion a component/page in a subdirectory under
"mywebapp" conect path will render correctly because the images is
relative to the css dir.

But it seems like the only way to benifit from the asset service's
i18n feutures is to use @Any component together with some ugly ognl
statement or alternatively use a page class method to lookup the asset
and "calculate" the final url?

<span jwcid="@Any"
style="background-image:url(img/button-center.gif);" >Blah</span>


On 7/28/06, Jesse Kuhnert <[EMAIL PROTECTED]> wrote:
> The same way you would with static html.
>
> A typical app might have a top level directory structure of:
>
> css/
> images/
> js/
> WEB-INF/
>
> If you have a stylesheet file with something like:
>
> .info {
>      background: url("images/button-center.gif") no-repeat top right;
> }
>
> Then you can do:
>
> <span jwcid="@Any" class="info" />
>
> On 7/28/06, Mike Oestereter <[EMAIL PROTECTED]> wrote:
> >
> > Hi
> >
> > How do I define the style for an element to use an asset in stead of
> > the direct image, either as an inline style definition or
> > alternatively as a stylesheet ?
> >
> > <span jwcid="@Any"
> > style="background-image:url(img/button-center.gif);" >Blah</span>
> >
> > Thanks
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [EMAIL PROTECTED]
> > For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
>
>
> --
> Jesse Kuhnert
> Tacos/Tapestry, team member/developer
>
> Open source based consulting work centered around
> dojo/tapestry/tacos/hivemind.
>
>


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

Reply via email to