Re: Tapestry Production Mode

2014-10-13 Thread Thiago H de Paula Figueiredo
On Mon, 13 Oct 2014 10:37:25 -0300, akshay wrote: Hi Thiago, Thanks for all your responses.I am still stuck with the problem related to the loading of images , when less to css compilation is forced by us. As I told you: In the less file the images are referenced with paths, like @prod

Re: Tapestry Production Mode

2014-10-13 Thread Chris Poulsen
You could take the quick and dirty way and have a tapestry filter redirect to the correct asset paths. We use this at work for things like rich text editors that attempts to load stuff relative to the first js file loaded. -- Chris On Mon, Oct 13, 2014 at 3:37 PM, akshay wrote: > Hi Thiago, >

Re: Tapestry Production Mode

2014-10-13 Thread akshay
Hi Thiago, Thanks for all your responses.I am still stuck with the problem related to the loading of images , when less to css compilation is forced by us. As I told you: In the less file the images are referenced with paths, like @product: url(../images/product.svg)--( though I agree that we c

Re: Tapestry Production Mode

2014-10-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Oct 2014 17:18:04 -0300, akshay 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; ... Strin

Re: Tapestry Production Mode

2014-10-09 Thread akshay
Hi Thaigo, Well the Url is :- localhost:8080/WebPortal/config/lessToCss Regards Akshay On Thu, Oct 9, 2014 at 10:12 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 09 Oct 2014 17:10:47 -0300, akshay > wrote: > > Hi Thiago, >> >> >> Yes i see the streamed response gene

Re: Tapestry Production Mode

2014-10-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Oct 2014 17:10:47 -0300, akshay wrote: Hi Thiago, Yes i see the streamed response generated. What's its URL? Regards Akshay On Thu, Oct 9, 2014 at 10:01 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: When you request your page file directly, do you get the t

Re: Tapestry Production Mode

2014-10-09 Thread akshay
Hi Thiago, Yes i see the streamed response generated. Regards Akshay On Thu, Oct 9, 2014 at 10:01 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > When you request your page file directly, do you get the transformed CSS? > > > On Thu, 09 Oct 2014 16:40:32 -0300, akshay > wrote:

Re: Tapestry Production Mode

2014-10-09 Thread Thiago H de Paula Figueiredo
When you request your page file directly, do you get the transformed CSS? On Thu, 09 Oct 2014 16:40:32 -0300, akshay wrote: Hi Thiago, Well I use tapestry 5.4. i) WhenvI tried using in tapestry 5.3 way:- javaScriptSupport.importStylesheet(new StylesheetLink("/config/lessToCss")); By doi

Re: Tapestry Production Mode

2014-10-09 Thread akshay
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 no

Re: Tapestry Production Mode

2014-10-09 Thread Thiago H de Paula Figueiredo
On Thu, 09 Oct 2014 12:19:17 -0300, akshay 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(styleshee

Re: Tapestry Production Mode

2014-10-09 Thread akshay
Hi Thiago, 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. iii) But when I

Re: Tapestry Production Mode

2014-10-07 Thread Thiago H de Paula Figueiredo
On Tue, 07 Oct 2014 14:15:26 -0300, akshay wrote: Hi Thiago, Hi! If you were using 5.4, you could @Import(stylesheet="//:yourCss FileFileUrl"); Do you mean the page url?? Because I have Stream response of cssContent. The css file doesnt exist in the workspace. Yep! The page URL is you

Re: Tapestry Production Mode

2014-10-07 Thread akshay
Hi Thiago, If you were using 5.4, you could @Import(stylesheet="//:yourCss FileFileUrl"); Do you mean the page url?? Because I have Stream response of cssContent. The css file doesnt exist in the workspace. in case I misunderstood, can you highlight an example? Regards Akshay On Tue, Oct 7, 2

Re: Tapestry Production Mode

2014-10-07 Thread Thiago H de Paula Figueiredo
On Tue, 07 Oct 2014 05:53:01 -0300, akshay wrote: Hi Thiago, Hi! . I already saw the tapestry mailing list about how to override the bootstrap.css , but my scenario is bit different as I have a Stream Response of css content ( and not a physically present css file). I need to have a way

Re: Tapestry Production Mode

2014-10-07 Thread akshay
Hi Thiago, Thanks for the idea. I have to give a try! whooo :( I see another different problem occurring yesterday, that my streamed css response that is returned from the tapestry page gets overridden by the bootstrap.css. I have something like this in my layout component inside the header

Re: Tapestry Production Mode

2014-10-06 Thread Thiago H de Paula Figueiredo
On Mon, 06 Oct 2014 06:05:25 -0300, akshay wrote: Hi Thiago, Hi! Yes, of course. I will share the solution, but I have one more withstanding problem. In my compiled CSS the image paths are wrong. In my less file the images are referenced with relative path, like @product: url(../imag

Re: Tapestry Production Mode

2014-10-06 Thread akshay
Hi Thiago, Yes, of course. I will share the solution, but I have one more withstanding problem. In my compiled CSS the image paths are wrong. In my less file the images are referenced with relative path, like @product: url(../images/product.svg); and should be (in the compiled CSS) like:- @pr

Re: Tapestry Production Mode

2014-10-01 Thread Thiago H de Paula Figueiredo
On Wed, 01 Oct 2014 11:08:35 -0300, akshay wrote: Hi Thiago, Hello, Akshay! Your idea works.Great!! Thanks a lot!!! Yay! :) Is it possible for you to share the solution, so other people with similar needs can benefit from it? -- Thiago H. de Paula Figueiredo Tapestry, Java and Hibe

Re: Tapestry Production Mode

2014-10-01 Thread akshay
Hi Thiago, Your idea works.Great!! Thanks a lot!!! Regards Akshay On Fri, Sep 26, 2014 at 6:59 PM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Fri, 26 Sep 2014 12:53:00 -0300, akshay > wrote: > > Hi Thiago, >> > > Hi! > > I believe tapestry 5.4 doesn't have any wro4j rela

Re: Tapestry Production Mode

2014-09-26 Thread Thiago H de Paula Figueiredo
On Fri, 26 Sep 2014 12:53:00 -0300, akshay wrote: Hi Thiago, Hi! I believe tapestry 5.4 doesn't have any wro4j related packages. Rather, when I debug I see a ResourceTransformer class calling LessCompiler, LessToCssCompiler and few other classes. Yep, 5.3 used wro4j, but 5.4 uses Less4

Re: Tapestry Production Mode

2014-09-26 Thread akshay
Hi Thiago, I believe tapestry 5.4 doesn't have any wro4j related packages. Rather, when I debug I see a ResourceTransformer class calling LessCompiler, LessToCssCompiler and few other classes. It really looks complicated to directly use and get hold of these classes.(may be i am overlooking somet

Re: Tapestry Production Mode

2014-09-25 Thread Lance Java
If you are changing the content of the css, you should also change the name / path to the css. This will allow you to keep the far future expiry and browser caching.

Re: Tapestry Production Mode

2014-09-25 Thread akshay
Hi Thiago, No, I give it a try now. Thanks for the response. Will let you know the outcome :) Regards Akshay On Fri, Sep 26, 2014 at 12:00 AM, Thiago H de Paula Figueiredo < thiag...@gmail.com> wrote: > On Thu, 25 Sep 2014 18:53:14 -0300, akshay > wrote: > > Hi Thiago, >> > > Hi! > > I ha

Re: Tapestry Production Mode

2014-09-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Sep 2014 18:53:14 -0300, akshay wrote: Hi Thiago, Hi! I had a servlet before doing this for me , but now with the requirement to modify .less files. I converted the Servlet into the Request Filter( added that filter into the AppModule class). Doing this yields me the desir

Re: Tapestry Production Mode

2014-09-25 Thread akshay
Hi Thiago, Thanks!! Yes I have already done this with css and its pretty simple( much more than modifying .less file). I had a servlet before doing this for me , but now with the requirement to modify .less files. I converted the Servlet into the Request Filter( added that filter into the AppMod

Re: Tapestry Production Mode

2014-09-25 Thread Thiago H de Paula Figueiredo
On Thu, 25 Sep 2014 17:59:33 -0300, akshay wrote: Hi, Hi! I am working on Theming the website and have a requirement where in I can directly change the Less variables dynamically(something like color) of the menu bar, before they are compiled into the css. Do we have any hook around fo

Re: Tapestry Production Mode

2014-09-25 Thread akshay
Hi, I am working on Theming the website and have a requirement where in I can directly change the Less variables dynamically(something like color) of the menu bar, before they are compiled into the css. Do we have any hook around for this? Regards Akshay On Thu, Sep 25, 2014 at 8:56 PM, Lance J

Re: Tapestry Production Mode

2014-09-25 Thread Lance Java
Went would you want to do that? Css should be considered static. Tapestry uses far future expire headers for css so that browsers can aggressively cache them. On 25 Sep 2014 15:23, "akshay" wrote: > Hi, > > Is there any way in tapestry 5.4 (*production mode) *where-in, I can fire > the tapestr

Tapestry Production Mode

2014-09-25 Thread akshay
Hi, Is there any way in tapestry 5.4 (*production mode) *where-in, I can fire the tapestry compiling chain again ( so that my less file are compiled again). I am able to get this done in *development *mode, by adding a request filter(which picks my dynamic changes on the file), by adding my Req