Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-20 Thread exl
-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3921054.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-17 Thread exl
a workaround? - Eric is learning how to use Wicket and enjoying the experience so far... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3914246.html Sent from the Users forum

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Martin Grigorov
is not delivered by Wicket. The same approach can be used for PackageResource (as Image does) but by using urlFor(ResourceReference)... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Carl-Eric Menzel
. In this use case (render an image) it seems obvious that even though the whole panel is disabled, it is being rendered, so the image resource should work. But is it always true that a resource should be allowed even if the parent is disabled? On the other hand, this can only affect component-hosted

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Martin Grigorov
forbids requesting a resource ... I think this is a not-so-easy problem, actually. In this use case (render an image) it seems obvious that even though the whole panel is disabled, it is being rendered, so the image resource should work. Define disabled image and we may find a solution

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Carl-Eric Menzel
On Tue, 4 Oct 2011 10:59:53 +0200 Martin Grigorov mgrigo...@apache.org wrote: I think this is a not-so-easy problem, actually. In this use case (render an image) it seems obvious that even though the whole panel is disabled, it is being rendered, so the image resource should work. Define

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread Martin Grigorov
is disabled, it is being rendered, so the image resource should work. Define disabled image and we may find a solution :-) Well, you can have for example a form that is disabled, so the user can't input anything. However, within that form you have an image, possibly one that's generated

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-04 Thread cellis
a BlobImageResource, so yeh, a dynamic image, as opposed to a static one. An interesting discussion nonetheless... -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3873097.html Sent from

Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-03 Thread cellis
perhaps? -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3869742.html Sent from the Users forum mailing list archive at Nabble.com

Re: Wicket 1.5.1 image resource not available if parent component is disabled

2011-10-03 Thread cellis
://apache-wicket.1842946.n4.nabble.com/Wicket-1-5-1-image-resource-not-available-if-parent-component-is-disabled-tp3869742p3869819.html Sent from the Users forum mailing list archive at Nabble.com. - To unsubscribe, e-mail: users

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

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

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
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
Thanks! I'll try those options. A On Tue, Jul 5, 2011 at 11:45 AM, Martin Grigorov mgrigo...@apache.org 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

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

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 anders.smes...@gmail.com wrote: Hi. I have a simple (test) page with an ajax link that

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 mgrigo...@apache.org 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.

recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
Our app has been working great this past year but we recently encountered a strange behavior and wanted to get the communities input on how to proceed. Background: * Wicket 1.3.6 * JDK 1.5 * Jetty (dev) / Apache and Tomcat (prod) * The URL to our app follows this

Re: recommended static image/resource strategy

2009-07-09 Thread Igor Vaynberg
it seems like a bug in ServletWebRequest#getRelativePathPrefixToWicketHandler(), you might want to subclass that, check for those two params in the url, and add an additional ../.. as a hack for right now. also open a jira issue for us to fix it. -igor On Wed, Jul 8, 2009 at 2:46 PM, Doug

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
: Igor Vaynberg igor.vaynb...@gmail.com To: users@wicket.apache.org; Doug Leeper douglee...@yahoo.com Sent: Thursday, July 9, 2009 10:13:05 AM Subject: Re: recommended static image/resource strategy it seems like a bug in ServletWebRequest#getRelativePathPrefixToWicketHandler(), you might want

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
My issue appears to be not new... https://issues.apache.org/jira/browse/WICKET-1889 https://issues.apache.org/jira/browse/WICKET-1700 But this only applies to v1.4. -- View this message in context: http://www.nabble.com/recommended-static-image-resource-strategy-tp24407111p24415043.html Sent

Re: recommended static image/resource strategy

2009-07-09 Thread Doug Leeper
My issue appears to be not new... https://issues.apache.org/jira/browse/WICKET-1889 https://issues.apache.org/jira/browse/WICKET-1700 But the fix is for v1.4.x not v1.3.6 -- View this message in context: http://www.nabble.com/recommended-static-image-resource-strategy-tp24407111p24415044.html

Image Resource not loading

2009-02-01 Thread Nicolas Labrot
Hello, I'm glad to write my first message on the wicket ML. :) I have a problem with resource loading. I have create a GridView which display 12 images : GridViewMedia gridView = new GridViewMedia(rows, dataProvider) The populateItem : Image randomImage = new NonCachinImage(randomImage);

Re: Image Resource not loading

2009-02-01 Thread Nicolas Labrot
After some debug, it seems my firefox is bugging. It's work perfectly on chrome, IE, opera and not with firefox. It works on firefox when httpfox (a http header tracer) is running... nicolas.lab...@4dconcept.fr wrote: Hello, I'm glad to write my first message on the wicket ML. :) I

Re: How to create a cacheable image resource for a image file?

2008-06-24 Thread Justin Morgan - Logic Sector
Thanks for the suggestion Jeremy. Here is the solution I eventually settled on, in case anyone is searching the mail archives on the same keywords I used. My solution basically checks to see if a shared image resource has been mounted, and if not, mounts it. Thereafter, each time the page

How to create a cacheable image resource for a image file?

2008-06-23 Thread Justin Morgan - Logic Sector
the page is instantiated. Thus, the browser can't cache the image. This is bad because I want the image to be cached. My question is: How can I provide a non-changing URL for the image resource so the image is cacheable? Many thanks for any help

Re: How to create a cacheable image resource for a image file?

2008-06-23 Thread Jeremy Thomerson
DynamicImageResource is created each time the page is instantiated. Thus, the browser can't cache the image. This is bad because I want the image to be cached. My question is: How can I provide a non-changing URL for the image resource so the image is cacheable? Many thanks for any help

RE: image resource

2008-04-25 Thread i ii
thank you! image component can be used, no? Date: Thu, 24 Apr 2008 13:45:39 -0700 From: [EMAIL PROTECTED] To: users@wicket.apache.org Subject: Re: image resource new WebMarkupContainer(wicketId) { private static final long serialVersionUID = 1L; @Override

image resource

2008-04-24 Thread i ii
how to get image src from other site? i need to update image based on user input // does not work new Image(wicketId, new Model(http://www.someothersite.com/image.gif;));

Re: image resource

2008-04-24 Thread Matthew Young
new WebMarkupContainer(wicketId) { private static final long serialVersionUID = 1L; @Override protected void onComponentTag(final ComponentTag tag){ super.onComponentTag(tag); tag.put(src, http://www.someothersite.com/image.gif;);

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 :