Re: [5.4] Get asset from code

2016-02-17 Thread JumpStart
For example: @Inject private AssetSource assetSource; public String getImageURL() { return assetSource.getClasspathAsset("/META-INF/assets/images/image-42.png", currentLocale).toClientURL().toString(); } Geoff > On 18 Feb 2016, at 3:18 am, Thiago H de Paula Figueiredo

Re: [5.4] Get asset from code

2016-02-17 Thread Thiago H de Paula Figueiredo
On Wed, 17 Feb 2016 14:18:33 -0200, Nathan Quirynen wrote: Hi, Hi! But how can I get the asset in code? Sometimes the asset is "dynamic" (based on other parameters). I thought I'd use one of the methods of AssetSource, but I'm not sure how to use it as I

[5.4] Get asset from code

2016-02-17 Thread Nathan Quirynen
Hi, in the progress of adapting to 5.4 I'm now moving my assets to the recomended location " src/main/resources/META-INF/assets/[path to asset]". In a page or component class I import them using: @Import(stylesheet = { "[path to asset]" }) In a template I access assets by using:

Re: Tapestry is a sinking Ship

2016-02-17 Thread Patrick Moore
the tapestry committee will get the behavior it tolerates. unproductive behavior should not be tolerated any more than obnoxious behavior would be tolerated in your own home. tapestry group would be well advised to ban obnoxious behavior like this. Patrick Moore (256) 203-3775 Currently looking