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: ${asset:[path to asset]}

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 always get the error that Tapestry can't find the asset.

Nathan

Reply via email to