Hello, Which is the best way for using dynamic assets?
In one of my classes, i have too much asset declarations now.. @Inject @Path("context:/img/icon/star/starScore20.png") private Asset star20Asset; What i would prefer is a method which directly is generating the asset (dynamically) - because it happens that many of the defined assets and dont need. e.g: if (rating == 0){ Asset asset = new Asset("context:/img/icon/star/starScore20.png") return asset.toClientURL(); } else if (rating <= 0.5) { ... } ..but fore sure, new Asset(...) does not exist. any ideas? thx alex -- View this message in context: http://tapestry.1045711.n5.nabble.com/Dynamic-Assets-tp5717354.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org For additional commands, e-mail: users-h...@tapestry.apache.org