Thanks Igor. I don't believe this works offline (atleast under firefox in ubuntu). It works fine if I put a real web URL (i.e. http://www.google.com).
I've tried all sorts of combinations (relative and absolute). I may be specifying the absolute path incorrectly. I tried 3 and 4 forward slashes (since on linux root is '/') href="file:///home/blah/blah", href=file:////home/blah/blah, href="../blah/blah". Each time, I tried using /images/logo.png and images/logo.png. It seemed to ignore the base tag unless it specified an http address. <head> <title>MyTest</title> <base href="file:///home/user/projects/mytest/web/"> </head> <body> <img src="images/logo.png"/> </body> igor.vaynberg wrote: > > simply do this > > have your images be relative > > 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 > > -- View this message in context: http://www.nabble.com/Setting-up-project---images-and-stylesheets-tf4094209.html#a11681135 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