ie
HTML
<img wicket:id="myimage" />
Java
add(new ContextImage("myimage", "path/to/your/image");
The path will be relative to your webapp, so if your images are
deployed in the root of your webapp the path will just be "image.jpg".
cheers, Steve On 27/03/2009, at 9:22 PM, fachhoch wrote:
I have my images in root folder , i dont want to change their location , please suggest me how to load images using resource reference ? what is theequivalent ofrequest.getContextPath()\images\myimage.jpg in wicket html page ? I dontwant to hard code my application context root in html pages -- View this message in context: http://www.nabble.com/images-in-root-folder-tp22748451p22748451.html Sent from the Wicket - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
smime.p7s
Description: S/MIME cryptographic signature
