-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
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
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
. 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
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
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
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
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
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
://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
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
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
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
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
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
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
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
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.
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
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
: 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
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
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
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);
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
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
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
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
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
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;));
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;);
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 :
32 matches
Mail list logo