That's hard to say from the snippet you've provided here, especially
since a few markup tags didn't make it through.
Please create an issue and attach your quickstart to it.
Sven
On 07/26/2012 09:31 PM, jchappelle wrote:
I'm hitting a problem with images not being found when using CryptoMapper. I
have 2 pages listed below. The dynamic image on the second page does not
show but it does on the first page. I get to the second page by clicking the
"Page 2" link on the first. The code below is from my quickstart I have
created. It is pretty small so I figured why not list it here. Any help is
appreciated.
public class Page1 extends WebPage
{
public Page1()
{
add(new ImagePanel("panel"));
add(new AjaxLink<Void>("page2Link")
{
@Override
public void onClick(AjaxRequestTarget target)
{
setResponsePage(Page2.class);
}
});
}
}
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<body>
<div wicket:id="panel"></div>
# Page 2
</body>
</html>
public class Page2 extends WebPage
{
public Page2()
{
add(new ImagePanel("panel"));
}
}
<!DOCTYPE html>
<html xmlns:wicket="http://wicket.apache.org">
<body>
<div wicket:id="panel"></div>
</body>
</html>
public class ImagePanel extends Panel
{
public ImagePanel(String id)
{
super(id);
add(new Label("dynamicImage", Model.of("Image Here:
images/arrow-up-green.gif ")).setEscapeModelStrings(false));
}
}
<?xml version="1.0" encoding="UTF-8"?>
<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:wicket="http://wicket.apache.org/">
<wicket:panel>
<div>Hard-Coded Image: images/arrow-up-green.gif </div>
<div>Dynamic Image: </div>
</wicket:panel>
</html>
public class WicketApplication extends WebApplication
{
@Override
public Class<? extends Page> getHomePage()
{
return Page1.class;
}
@Override
public void init()
{
super.init();
setRootRequestMapper(new CryptoMapper(getRootRequestMapper(),
this));
}
}
--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Image-urls-with-CryptoMapper-tp4650805.html
Sent from the Users forum mailing list archive at Nabble.com.
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org