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
> /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

Reply via email to