@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