Why not do:
final Image logoImg = new Image(logoimg);
logoImg.add(new SimpleAttributeModifier(src, chemin));
or:
final Image logoImg = new Image(logoimg);
logoImg.add(new AttributeModifier(src, true, new
AbstractReadOnlyModel() {
public final Object getObject() {
// TODO
I hope I'm getting your point right ...
I think the solution for your problem is to mount the resource. E.g. in your
application class (if it's a logo that's reused often in the app ... and
also comes with the app)
final String name = foo.jpg;
getSharedResources().add(name,
Thank you for your help, I will try your solution :)
--
View this message in context:
http://www.nabble.com/How-can-i-load-Image---tp17403872p17406121.html
Sent from the Wicket - User mailing list archive at Nabble.com.
-
To