do the urls in those img tags point back to the page? :)
eg <img src=""/> will do it
-igor
On 3/5/07, Corey Puffalt <[EMAIL PROTECTED]> wrote:
Hi...
I'm new to Wicket so hopefully this will be obvious to someone else. I'm
seeing what seems (to me) to be strange behavior. I've got a page into
which I'm rendering some Labels with models that contain some HTML. These
Labels are being rendered inside a DataView (though I doubt that makes a
difference). The code in the constructor for my page looks something like
this:
...
DataView dataView = new DataView("pageable", new EntryDataProvider())
{
protected void populateItem(final Item item)
{
log.debug("Populating " + item);
Entry entry = (Entry)item.getModelObject();
....
item.add(new Label("message", entry.getMessage
()).setEscapeModelStrings(false));
}
};
add(dataView);
...
The strange behavior I'm seeing is that my Page is being constructed
multiple times and it appears to be somehow due to the HTML content in my
Label?!? If I setEscapeModelStrings(true) then my Page is only constructed
once but otherwise it is constructed multiple times. I've added some
additional debug logging and it seems to be somehow related to some embedded
<img> tags in the HTML I'm outputting. Can anyone explain what is going on
here? Does anyone know how I can prevent my Page from being unnecessarily
constructed multiple times?
Thanks,
Corey
-------------------------------------------------------------------------
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
[email protected]
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user