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 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 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: Received Ajax response with code: 500
> INFO: Invoking post-call handler(s)...
> INFO: Invoking failure handler(s)...
>
> On 1/24/07, Igor Vaynberg <[EMAIL PROTECTED] > wrote:
> > 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 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 the original
> StaticImage:
> > > >
> > > > package com.vegas.wicket;
> > > >
> > > > import wicket.markup.ComponentTag;
> > > > import wicket.markup.html.WebComponent;
> > > > import wicket.model.IModel;
> > > > import wicket.model.Model;
> > > >
> > > > public class StaticImage extends WebComponent
> > > > {
> > > > private static final long serialVersionUID =
> -7600332611457262341L;
> > > >
> > > > public StaticImage(String id, IModel model)
> > > > {
> > > > super(id, model);
> > > > }
> > > >
> > > > public StaticImage(String id, String url)
> > > > {
> > > > this(id, new Model(url));
> > > > }
> > > >
> > > > protected void onComponentTag(ComponentTag tag)
> > > > {
> > > > checkComponentTag(tag, "img");
> > > > tag.put("src", getModelObjectAsString());
> > > > }
> > > > }
> > >
> > >
> > >
> > > --
> > > Scott Swank
> > > reformed mathematician
> > >
>
-------------------------------------------------------------------------
> > > Take Surveys. Earn Cash. Influence the Future of IT
> > > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > > opinions on IT & business topics through brief surveys - and earn
cash
> > >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> > >
> > > _______________________________________________
> > > Wicket-user mailing list
> > > Wicket-user@lists.sourceforge.net
> > >
> https://lists.sourceforge.net/lists/listinfo/wicket-user
> > >
> > >
> > >
> >
> >
> >
>
-------------------------------------------------------------------------
> > Take Surveys. Earn Cash. Influence the Future of IT
> > Join SourceForge.net's Techsay panel and you'll get the chance to
share
> your
> > opinions on IT & business topics through brief surveys - and earn cash
> >
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
> >
> > _______________________________________________
> > Wicket-user mailing list
> > Wicket-user@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wicket-user
> >
> >
> >
>
>
>
> --
> Scott Swank
> reformed mathematician
>
-------------------------------------------------------------------------
> Take Surveys. Earn Cash. Influence the Future of IT
> Join SourceForge.net's Techsay panel and you'll get the chance to share
your
> opinions on IT & business topics through brief surveys - and earn cash
>
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
>
> _______________________________________________
> Wicket-user mailing list
> Wicket-user@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wicket-user
>
>
>
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user
--
Scott Swank
reformed mathematician
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
Wicket-user mailing list
Wicket-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wicket-user