Re: Assets in component library

2014-04-01 Thread Howard Lewis Ship
Note that this will work differently, and more simply, in 5.4, where it's just a matter of putting them into the correct sub-folder of META-INF/assets. On Fri, Mar 28, 2014 at 2:09 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 28 Mar 2014 04:55:17 -0300, Nathan Quirynen

Re: Assets in component library

2014-03-28 Thread Thiago H de Paula Figueiredo
On Fri, 28 Mar 2014 04:55:17 -0300, Nathan Quirynen wrote: Hey Thiago, Hi! Please try src="${classpath:assets/components/languageselector/nl.png}" /> (notice the lack of slash before assets). -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibernate consultant and developer htt

Re: Assets in component library

2014-03-28 Thread Nathan Quirynen
I got it working with the following: public String getImagePath() { return assetSource.getClasspathAsset("classpath:com/company/tapestrylib/assets/components/languageselector/" + loopLocale.getLanguage() + ".png").toClientURL(); } + + Files located in: src/main/resources/com/company/tape

Re: Assets in component library

2014-03-28 Thread Nathan Quirynen
Hey Thiago, Thanks for the reply. I indeed use the maven structure and that's actually something I have tried, with the following error as result: Could not convert 'classpath:/assets/components/languageselector/nl.png' into a component parameter binding: Error parsing property expression 'classp

Re: Assets in component library

2014-03-27 Thread Thiago H de Paula Figueiredo
On Thu, 27 Mar 2014 12:19:41 -0300, Nathan Quirynen wrote: Hi, Hi! I'm moving my components to a Tapestry component library. But I'm not sure how to handle images used in those components. Before I just put them in *src/main/webapp/images/* and then used ** But what's the right way of ha

Assets in component library

2014-03-27 Thread Nathan Quirynen
Hi, I'm moving my components to a Tapestry component library. But I'm not sure how to handle images used in those components. Before I just put them in *src/main/webapp/images/* and then used ** But what's the right way of handling images in a Tapestry library. I've been trying different things w