Re: [Wicket-user] How do you load an external image?

2007-01-30 Thread Scott Swank
I went back to this last night and it just worked the way it should have in the first place without any changes. I imagine that we had something mucked up in our app's resource stream locator. Thanks again. On 1/24/07, Igor Vaynberg [EMAIL PROTECTED] wrote: ah, so the image doesnt even

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Scott Swank
When I use the above StaticImage Wicket looks for the image url in the path of the relevant component like so: com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg Do I need to add a WebPageResourceStreamLocator or some such thing? The full log

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Igor Vaynberg
how are you creating the static image? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: When I use the above StaticImage Wicket looks for the image url in the path of the relevant component like so:

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Scott Swank
The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg;)); And that uses a convenience constructor I added to the original StaticImage: package com.vegas.wicket; import wicket.markup.ComponentTag; import

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Scott Swank
And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: The image is added to the panel like so: add(new StaticImage(productImage, http://cache.vegas.com/resorts/thehotel/mandalaybaynew.jpg )); And that uses a convenience

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Igor Vaynberg
that is very peculiar, i dont see a reason for it to look for a packaged resource, what does the produced markup look like? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: And the html tag is simply: img wicket:id=productImage / Thank you. On 1/24/07, Scott Swank [EMAIL

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Scott Swank
We have added a new ResourceStreamLocator to let us put html files off in a separate directory for our UI team. From our WebApplication: protected void init() { super.init(); CompoundResourceStreamLocator locator =

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Scott Swank
No markup is produced. It's in a ModalWindow. Here's the dump from the Ajax debug window: *INFO: * Initiating Ajax GET request on /wicketapp/app?wicket:interface=:1:openScroll::IBehaviorListenerwicket:behaviorId=0random= 0.46680841416499696 *INFO: *Invoking pre-call handler(s)... *ERROR:

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Igor Vaynberg
i have no idea why you would have that weird stuff in the src attribute, its not in the model. -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: No markup is produced. It's in a ModalWindow. Here's the dump from the Ajax debug window: INFO: Initiating Ajax GET request on

Re: [Wicket-user] How do you load an external image?

2007-01-24 Thread Igor Vaynberg
ah, so the image doesnt even render, i see. i thought that url you showed was in the image's src. so this thread doesnt have anything to do with the staticimage component itself??? -igor On 1/24/07, Scott Swank [EMAIL PROTECTED] wrote: No markup is produced. It's in a ModalWindow. Here's the

[Wicket-user] How do you load an external image?

2006-12-27 Thread August Detlefsen
How can I load an image directly from a url? For example I want to display a picture of a user next to their profile, but all of the images are served by another machine for better performance. I tried something like this but it won't compile: Image profileImg = new

Re: [Wicket-user] How do you load an external image?

2006-12-27 Thread Igor Vaynberg
class staticimage extends webcomponent { public staticimage(string id, imodel model) { super(id, model); } protected void oncomponenttag(tag) { checkcomponenttag(tag, img); tag.put(src, getModelObjectAsString()); } } add(new

Re: [Wicket-user] How do you load an external image?

2006-12-27 Thread August Detlefsen
Thank you Igor! You don't know how long I tried to do this. I've added this fix to the Wiki: http://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image -August Igor Vaynberg wrote: class staticimage extends webcomponent { public staticimage(string id, imodel

Re: [Wicket-user] How do you load an external image?

2006-12-27 Thread Igor Vaynberg
i wouldnt really call it a fix, just common sense after using wicket for a bit :) -igor On 12/27/06, August Detlefsen [EMAIL PROTECTED] wrote: Thank you Igor! You don't know how long I tried to do this. I've added this fix to the Wiki: