Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-04 Thread Martin Grigorov
Hi, On Tue, Jul 3, 2012 at 11:32 PM, sardo mark.willi...@power-oasis.com wrote: Thanks Martin, that helps. Forgive my naivety, but why do I have the option of adding CSS via the Java code? Surely it's better to follow convention and add it into the appropriate .war directory? If you provide

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-04 Thread sardo
Martin Grigorov-4 wrote If you provide components library then you need to distribute the resources too, not just the classes. Shared resources is more for delivering dynamically generated content. A content that is different depending on some external condition (request parameter, session

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-04 Thread sardo
UPDATE: I created a new TestBasePage and a new class that extends TestBasePage. The markup for TestBasePage has the same head mark up as that in my application's BasePage class. When I tested the rendered html it still has two head tags. I then added the wicket:head tag to the child class of

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-04 Thread Martin Grigorov
Hi, If you can reproduce this in a mini application (aka quickstart) then please attach it to a ticket in our Jira and we will have a look. On Wed, Jul 4, 2012 at 1:08 PM, sardo mark.willi...@power-oasis.com wrote: UPDATE: I created a new TestBasePage and a new class that extends

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-03 Thread sardo
I have a similar problem: A css style sheet is added to the app like so: getSharedResources().add(css_table, new ContextRelativeResource(css/table.css)); and this css file contains image references like so: div.tabpanel div.tab-row li { float: left; background:

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-03 Thread Martin Grigorov
Hi, Either don't use ContextRelativeResource for the css or use it for all resources, i.e. the image should be delivered by ContextRelativeResource too. With the SharedResources you mount the .css at your own url and deliver its content. But there is no such code for the images. I'd remove the

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2012-07-03 Thread sardo
Thanks Martin, that helps. Forgive my naivety, but why do I have the option of adding CSS via the Java code? Surely it's better to follow convention and add it into the appropriate .war directory? ...and if I could do the Columbo, Just one more thing, thing. Why am I getting two head tags in my

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-12-03 Thread Martijn Dashorst
Or new ContextImage(...) Martijn On Wed, Nov 30, 2011 at 9:09 PM, Martin Grigorov mgrigo...@apache.org wrote: Try with: new Image(someId, new ContextRelativeResource(images/logout.png)) On Wed, Nov 30, 2011 at 6:40 PM, chris.schaefer cgs.schae...@gmail.com wrote: another thing i did not

Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread chris.schaefer
we are new to wicket, and currently trying to optimize and performance tune our wicket application. using 1.5.3. we tried to get the caching configuration up and running. red this:

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread Peter Ertl
and we have set: /getResourceSettings().setCachingStrategy(strat); /during application init. You don't have to. There's a default strategy during development and deployment that should work in most cases. Basically you have wicket-examples which are part of the wicket distribution and

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread chris.schaefer
yes we also tested with the default strategy, it does not change anything. and yes we reviews the link about caching already. no we have not found any working example for wicket 1.5. and caching, but reviewed most of the samples and git sources i think. which example would be the working one ?

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread Peter Ertl
the effects of the caching strategy can been for example on package resources (e.g. javascript, css, images) … e.g. start wicket-examples and load the pub - Localization page (the page with the different beers :-) From looking at the html source you see url's like this: img

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread chris.schaefer
thanks for this answer. in the pub example this seems to work, and we also see the Cache-control headers. but we do not need and have language specific resouces (so far). a. can you tell me how we should change the image construction for our initialization code which currently looks like this:

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread chris.schaefer
another thing i did not mention is, that in this applicaiton the images and js and css files are stored in the webapp/images folder and not in the classpath packages ! is it intended / required to store all images within java packages ? chris -- View this message in context:

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-30 Thread Martin Grigorov
Try with: new Image(someId, new ContextRelativeResource(images/logout.png)) On Wed, Nov 30, 2011 at 6:40 PM, chris.schaefer cgs.schae...@gmail.com wrote: another thing i did not mention is, that in this applicaiton the images and js and css files are stored in the webapp/images folder and

Re: Caching Imagages, CSS, JS in Wicket 1.5.3

2011-11-29 Thread Doug Leeper
Out of curiosity, why aren't you using ContextImage? That would help with the contextual path for the logout.png. -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Caching-Imagages-CSS-JS-in-Wicket-1-5-3-tp4121068p4121323.html Sent from the Users forum mailing list