In 5.4, I no longer use “context:” because 5.4 has a new location that works 
much better. If you put all your assets in src/main/resources/META-INF/assets/, 
eg.

        src/main/resources/META-INF/assets/layout/layout.css

then they will end up in the WAR’s WEB-INF/classes/META-INF/assets/, where you 
can reference them easily, eg.

        @Import(stylesheet = { “layout/layout.css” })

and you can use “asset:”, eg. the image 
src/main/resources/META-INF/assets/images/thing.png, can be referenced like 
this:

        <img src=“${asset:images/thing.png}”/>

Here’s more info:

        
http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/t5-4-beta-10-Unable-to-locate-asset-It-should-be-located-at-META-INF-assets-td5727146.html
 
<http://apache-tapestry-mailing-list-archives.1045711.n5.nabble.com/t5-4-beta-10-Unable-to-locate-asset-It-should-be-located-at-META-INF-assets-td5727146.html>

Also in 5.4, I’ve abandoned using <link>.

HTH,

Geoff

> On 20 May 2015, at 1:16 am, Christine <myli...@christine.nl> wrote:
> 
> On 18-05-15 14:39, Thiago H de Paula Figueiredo wrote:
>> 
>> That's your error. The context asset path root folder is the root of the 
>> WAR. In the sources, if you follow the Maven folder conventions, the context 
>> root folder is /src/main/webapp.
>> 
> 
> Thanks. But somehow, it now seems to find the layout.css, but not the images. 
> I checked the war file. Now i put the images outside the app, which works, 
> for now.
> 
> dagdag
> Christine
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
> For additional commands, e-mail: users-h...@tapestry.apache.org
> 

Reply via email to