On Thu, 09 Oct 2014 17:18:04 -0300, akshay <akshayestat...@gmail.com> wrote:

Hi Thaigo,

Well the Url is :-

localhost:8080/WebPortal/config/lessToCss

So the URL should have been "/WebPortal/config/lessToCss".

To avoid hardcoding, you can do this:

@Inject
private PageRenderLinkSource pageRenderLinkSource;
...
String cssUrl = pageRenderLinkSource.createPageRenderLink(LessToCss.class).toAbsoluteURI();
javaScriptSupport.importStylesheet(new StylesheetLink(cssUrl));

This will always work, as you're delegating the URL creation to Tapestry.

--
Thiago H. de Paula Figueiredo
Tapestry, Java and Hibernate consultant and developer
http://machina.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