On Mon, 11 Jul 2011 10:18:42 -0300, stephanos2k <stephan.beh...@googlemail.com> wrote:

I'm in the middle of moving assets from one "monolithic" Tapestry app to a 'common' base library assets.
Of course now I have to adapt my asset paths, but it's somewhat awkward:

     new asset path: /com/mycompany/style.css/
     old layout path: /com.appname.components.Layout.tml/

Now when I want to reference the styesheet in my layout, the only way I
could make it work was:
     <link href="${asset:/../../mycompany/style.css}"/>

*Isn't there a better way?*

Have you tried <link href="${classpath:/com/mycompany/style.css}"/>? Better yet, why don't you use @Import?

--
Thiago H. de Paula Figueiredo
Independent Java, Apache Tapestry 5 and Hibernate consultant, developer, and instructor
Owner, Ars Machina Tecnologia da Informação Ltda.
http://www.arsmachina.com.br

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@tapestry.apache.org
For additional commands, e-mail: users-h...@tapestry.apache.org

Reply via email to