I suppose you can place a src="absolutePathToUrImagesUnderWeb-root" and have 
the actual resource attached to image component by using a relative path and 
following constructors--
Image(java.lang.String id, ResourceReference resourceReference) Or 
Image(java.lang.String id, new Model(path)) 
..But the Image(id,IModel) will look the image in the package of the java 
class...
I think resourceReference takes relative paths as [web-root]/  (...not very 
sure though..someone needs to confirm)



>
>Hi,
>
>I understand that it is the recommendation to place html files in the src
>folder, along with the corresponding java files. However, what about images?
>Should I place them with the html and java files as well? 
>I can actually think of good reasons for placing all images in a central
>place. 
>More specifically, I have this problem: if I write in my html:  then for 
>wicket to find the gif at run-time, it
>needs to be under [web-root]/img. However, during development, when I want
>to preview the html, I will not see the img. How can I see it in BOTH in
>preview-mode, AND during runtime?
>
>Thanks,
>Naaman
>
>* I know this is probably a very basic question, but I'm new to Wicket, and
>I could not find an answer to this in the forum or documentation.
>
>
>
>-- 
>View this message in context: 
>http://www.nabble.com/Where-to-place-images-tf3601705.html#a10061018
>Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
>-------------------------------------------------------------------------
>This SF.net email is sponsored by DB2 Express
>Download DB2 Express C - the FREE version of DB2 express and take
>control of your XML. No limits. Just data. Click to get it now.
>http://sourceforge.net/powerbar/db2/
>_______________________________________________
>Wicket-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/wicket-user
>

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
_______________________________________________
Wicket-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wicket-user

Reply via email to