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 rend
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 t
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
> /wick
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::IBehaviorListener&wicket:behaviorId=0&random=
0.46680841416499696
*INFO: *Invoking pre-call handler(s)...
*ERROR: *Rec
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 =
(CompoundResourceStreamLocator)getResourceSettings().getResourceStrea
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:
Thank you.
On 1/24/07, Scott Swank < [EMAIL PROTECTED]> wrote:
>
> The image
And the html tag is simply:
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 constructor I added to t
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 wick
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:
>
> com/vegas/cart/wicket/components/scroll/http:/cache.vegas.com/resorts/thehotel/ma
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 outpu
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:
http://cwiki.apache.org/confluence/display/WICKET/
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 model)
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 staticimage(
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 Image("profileim
14 matches
Mail list logo