Hi Thiago, Well I use tapestry 5.4.
i) WhenvI tried using in tapestry 5.3 way:- javaScriptSupport.importStylesheet(new StylesheetLink("/config/lessToCss")); By doing this I see an empty lessToCss streamed file loaded.On debugging I see that the page itself was never fired. Looks like just a normal import happens. ii) Doing it in tapestry 5.4 way:- @Import(stylesheet="//:config/lessToCss") It doesnt even import the file, i dont even see the file getting loaded. Its tough time getting this worked :( Regards Akshay On Thu, Oct 9, 2014 at 8:59 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 09 Oct 2014 12:19:17 -0300, akshay <akshayestat...@gmail.com> > wrote: > > Hi Thiago, >> > > Hi! > > >> Well, I was trying the implement the solution given by you, but I see a >> problem. >> >> i) my lessToCSS page is located at the package:- >> abc.wp.pages.config. >> >> ii) First I tried doing this in Tapestry 5.4 way:- >> @Import(stylesheet="//:config/lessToCss") >> It doesn't work. >> > > Please don't say it doesn't work, as it's almost no information. > > @Import with "//:" will only work on 5.4, not on 5.3, which you said > you're using. > > iii) But when I try achieving the same doing this way:- >> javaScriptSupport.importStylesheet(new >> StylesheetLink("../config/lessToCss")); >> > > It should have been "/config/lessToCss", which is absolute, without the > "../", which is relative. Tapestry will take care of adjusting the path if > needed. > > > -- > 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 > > -- Cheers!! Akshay