I follow this example to localize img:
http://www.wicket-library.com/wicket-examples/pub/?0
which works. There is just one problem. I need to have image in package where I have java classes what I dont like. How I can set path to webapp/img ?
I try to set:
add(new Image("work", new PackageResourceReference(StatisticPage.class, "/img/work.png")));
or
add(new Image("work", new PackageResourceReference(StatisticPage.class, "img/work.png")));
but with no success
Use
ContextImageinstead ofImage.