'cliente:' is actually an AssetFactory... changed to this way you said and
still unsuccessful.This abstraction to access files it's a bit confusing to
me and didn't found in the docs how exactly it work.
I need a "FileSystem" asset factory, wich I tried to make and seem that some
times it even finds the file, but, now it just throws an exception... dunno
what's it...
Strange that there's almost no docs regarding Assets in wiki...

Stack trace:
org.apache.tapestry5.internal.services.AssetSourceImpl.findRelativeAsset(AssetSourceImpl.java:99)
org.apache.tapestry5.internal.services.AssetSourceImpl.getAsset(AssetSourceImpl.java:84)
tibox.allert.fastSupport.components.Layout.getLogoWeb(Layout.java:26)



On Tue, Feb 3, 2009 at 16:47, Howard Lewis Ship <hls...@gmail.com> wrote:

> @Inject calculates the injected value once, when the page instance is
> first loaded. To get the behavior you want, change this to inject the
> AssetSource service and provide a getLogoWeb() method that obtains the
> asset via AssetSource.getAsset(null, "cliente:logoWeb.gif", locale);
>
> On Tue, Feb 3, 2009 at 5:19 AM, Sid Ferreira <sid....@gmail.com> wrote:
> > Hi guys!
> > Im working on a small component that has an image asset that is based on
> the
> > url.Unfortunelly, after created by the first time, the asset is cached
> and
> > then the component doesn't get updated.
> > How to make a dynamic asset that is updated at each request?
> > My current declaration is:
> >
> > @SuppressWarnings("unused")
> >  @Inject
> > @Path("cliente:logoWeb.gif")
> > @Property
> >  private Asset logoWeb;
> >
> > The image displays ok, but gets cached and I dunno how to skip it.
> >
>
>
>
> --
> Howard M. Lewis Ship
>
> Creator Apache Tapestry and Apache HiveMind
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
>
>


-- 
Sidney G B Ferreira
Desenvolvedor Web - Tibox Innovations

Reply via email to