Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
Thanks! I'll try those options. A On Tue, Jul 5, 2011 at 11:45 AM, Martin Grigorov wrote: > You can use ContextImage and put the image itself next to WEB-INF folder. > > the anti-cache parameter is added to Image components so that they are > re-rendered when added to AjaxRequestTarget > with W

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Martin Grigorov
You can use ContextImage and put the image itself next to WEB-INF folder. the anti-cache parameter is added to Image components so that they are re-rendered when added to AjaxRequestTarget with Wicket 1.5-RC5.1 there is org.apache.wicket.markup.html.image.Image.shouldAddAntiCacheParameter() which

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
I see. So how do you usually include common images in your application? Say for instance you have a form button functionality, but you want it displayed as an image instead of the standard html button. Here we have used a button with an image, but the image gets rendered with the wicket:antiCache

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Martin Grigorov
We should revise this code. At least this shouldn't be a warning. I see it as debug. But as I said I need to look in this code first before I can comment. I personally don't use SharedResourceReferences in my app and thus never faced this issue. On Tue, Jul 5, 2011 at 10:13 AM, Anders Smestad wro

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-05 Thread Anders Smestad
But even when I follow the guidelines from the wicketstuff images examples, I get the WARN - ResourceReferenceRegistry - Resource reference not added to registry. reference.canBeRegistered() == false Why cannot a shared reference be registered? A On Mon, Jul 4, 2011 at 10:41 PM, Anders Smestad

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
Done: https://issues.apache.org/jira/browse/WICKET-3869 A On Mon, Jul 4, 2011 at 7:46 PM, Martin Grigorov wrote: > See how http://wicketstuff.org/wicket/images/ creates the images. > If you can create a quickstart application that shows the problem then > attach it to a ticket. > > On Mon, Jul 4

Re: Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Martin Grigorov
See how http://wicketstuff.org/wicket/images/ creates the images. If you can create a quickstart application that shows the problem then attach it to a ticket. On Mon, Jul 4, 2011 at 6:42 PM, Anders Smestad wrote: > Hi. I have a simple (test) page with an ajax link that displays a > modal window

Wicket 1.5 shared image resource and modal windows.

2011-07-04 Thread Anders Smestad
Hi. I have a simple (test) page with an ajax link that displays a modal window when clicked. The modal window contains some text and an image-link. The image is added to a link as link.add(new Image("image", sharedResourceReference); When displaying the modal window, everything displays correctl

Re: Shared Image Resource

2007-10-15 Thread Eelco Hillenius
> In my application I've added a shared resource. This resource is in a > seperate resource package (com.test.resources). In that package there's also > a 'dummy' class ResourceGetter, just to get access to the package. So in the > init of my application i've putted : > > getSharedResources().add("

Shared Image Resource

2007-09-25 Thread Marieke Vandamme
link or img tag, so wicket will look for my resource in com.test.resources and not in the package my page is in? And can i also use the shared name "imgStar" instead of "star.gif"? I want something like : < img src="imgStar" > Thanks for the help ! -- View this mes