Re: Generate css from less for package resources at runtime.

2016-06-16 Thread Lars Törner
Hi Martin, many thanks for your efforts! Unfortunately this isn't a priority for our team at the moment. I'll get back to you if/when we dig deeper into this matter. Cheers Lasse 2016-06-08 22:04 GMT+02:00 Martin Grigorov : > HI Lasse, > > I've checked again Wicket

Re: Generate css from less for package resources at runtime.

2016-06-08 Thread Martin Grigorov
HI Lasse, I've checked again Wicket Bootstrap code and I see that it works only with LessSource$URLSource class which have lastModifiedDate. I'll need more info (or a demo app) how exactly you use StringSource so I can think for improvement. Martin Grigorov Wicket Training and Consulting

Re: Generate css from less for package resources at runtime.

2016-05-30 Thread Martin Grigorov
Hi Lasse, https://github.com/SomMeri/less4j/blob/master/src/main/java/com/github/sommeri/less4j/LessSource.java#L365 StringSource doesn't have get/set lastModifiedDate. I can add a specialization of this class in Wicket Bootstrap Less project and make use of it while calculating the last

Re: Generate css from less for package resources at runtime.

2016-05-25 Thread Lars Törner
Hi Martin, Bas and others! Unfortunately I got one crucial thing wrong when I described our scenario. "A less-variable (put in a separate file) gets a new value." This is not the case, the variable is changed in code and not in a file. This means that even though we have changed a less variable

Re: Generate css from less for package resources at runtime.

2016-05-25 Thread Bas Gooren
Lars, Martin, Sorry for hijacking this thread (sort of). Hmmm, I am 100% sure it was not working for us in a web app we currently have running. I just checked which version of wicket-bootstrap-less it uses (version 0.9.11), and that version already has the recursive check on the last-modified

Re: Generate css from less for package resources at runtime.

2016-05-24 Thread Lars Törner
Thanks Martin, I'll take a look at it! tisdag 24 maj 2016 skrev Martin Grigorov : > Hi, > > I checked the code last night and I believe this use case should be covered > by > >

Re: Generate css from less for package resources at runtime.

2016-05-24 Thread Martin Grigorov
Hi, I checked the code last night and I believe this use case should be covered by https://github.com/l0rdn1kk0n/wicket-bootstrap/blob/a64af20bcd65f365dbd487c7480db441fd6b6489/bootstrap-less/src/main/java/de/agilecoders/wicket/less/LessCacheManager.java#L156 It uses Less4j's APIs to get all

Re: Generate css from less for package resources at runtime.

2016-05-18 Thread Lars Törner
Thanks, we'll try this! Cheers Lasse 2016-05-18 13:21 GMT+02:00 Bas Gooren : > Hi all, > > We’ve encountered this issue, too; Simple fix is to touch the less file, > even when a secondary file was the only change. > > The root cause is simple: wicket is not aware of any includes

Re: Generate css from less for package resources at runtime.

2016-05-18 Thread Bas Gooren
Hi all, We’ve encountered this issue, too; Simple fix is to touch the less file, even when a secondary file was the only change. The root cause is simple: wicket is not aware of any includes in the less file, and as such only looks at the “parent” less file to see if it was changed. A

Re: Generate css from less for package resources at runtime.

2016-05-18 Thread Martin Grigorov
Hi Lasse, I'll take a look in the coming days! Martin Grigorov Wicket Training and Consulting https://twitter.com/mtgrigorov On Wed, May 18, 2016 at 11:43 AM, Lars Törner wrote: > Hi Martin! > > We have now implemented this solution and we're using bootstrap-less - >

Re: Generate css from less for package resources at runtime.

2016-05-18 Thread Lars Törner
Hi Martin! We have now implemented this solution and we're using bootstrap-less - thanks for that! But we have a little problem... The browser does not recognize when the css has changed, the cause seems to be that the newly generated css is placed in a file with the same name as before. The

Re: Generate css from less for package resources at runtime.

2016-03-01 Thread Lars Törner
Thanks for your quick answer Martin! We will look into your suggestions and get back to you if we have more questions! 2016-03-01 11:49 GMT+01:00 Martin Grigorov : > Hi Lasse, > > I think the easiest would be to save the generated CSS in memory, e.g. in > YourApplication. >

Re: Generate css from less for package resources at runtime.

2016-03-01 Thread Martin Grigorov
Hi Lasse, I think the easiest would be to save the generated CSS in memory, e.g. in YourApplication. Once you receive an update from the other system you should just delete the cache (entry). I guess you will have to use read lock when serving the response and write lock when updating it. Wicket