simply do this have your images be relative
<img src="images/logo.png"/> in runtime wicket will rewrite them to be relative to context root in devel time put this into head <wicket:remove> <base href="../../../path/to/your/webapp/folder"/> </wicket:remove> so at devel time your images will also be relative to "context" root. -igor On 7/16/07, jonaqua <[EMAIL PROTECTED]> wrote: > > > I'm just getting started with Wicket. > > I'm not sure how I should best link to stylesheets and images in my > NetBeans > project. > > For example, if I have the following code in my MyPage.html page: > > <img src="images/logo.png"> > > ...and I run the application, the image will reference > web/images/logo.png. > However, if I just quickly view that HTML file, it will reference > src/java/package/images/logo.png and the image link will be broken. > > Is there a good way to set up the project besides keeping duplicate images > and stylesheets both in the source code dir and the web dir? > > I realize if I move the HTML files to the web directory the problem will > be > solved but I'm trying to stick with the Wicket way of doing things for now > (.HTML right next to .java in the source) > > Thanks > -- > View this message in context: > http://www.nabble.com/Setting-up-project---images-and-stylesheets-tf4094209.html#a11641865 > 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 > Wicket-user@lists.sourceforge.net > 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 Wicket-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wicket-user