i have testet and it works fine for me with 1.2 :-) I will show the code for other user with the same prob.
test.html: <html> <link wicket:id="pageCSS" rel="Stylesheet" type="text/css"href="css/page.css" /> <head> <title>Audio Recorder</title> </head> ......... test.java: .... add(new StyleSheetReference("pageCSS", getClass(), "css/page.css")); .... css/page.css: body { background-image: url(../pic/back180.png); } picture in folder: pic/back180.png thanks to C. Bergström for the fast answer. Joynty wrote: > > Thanks for the fast reply. > I will try your tipp and hope that the foo.css > will find the images within the box. > > > "C. Bergström" wrote: >> >> Joynty wrote: >>> Hello, >>> i'm searching for a solution to set ab background picture for the page >>> or >>> table. >>> i searched for 2 weeks but i don't find workaround. >>> In this forum i also didn't find one or the fragmentet snippets don't >>> help >>> me couse i'm new >>> with Wicket. >>> the problem is the path within the box and i don't find a mapping like: >>> java: >>> new(image(myImage,..)...) >>> html: >>> >> Not sure exactly this is what you're looking for, but you can and >> probably should set a background image from CSS. Of course you'll have >> to modify this below, but reference your stylesheet and then add >> something like this. >> >> >> body { >> background: #FFF url(images/bg.jpg) repeat-x; >> } >> >> >> If you need more info on how to add a stylesheet. This link my help [0] >> >> Best >> >> ./C >> >> >> [0] http://cwiki.apache.org/WICKET/javascript-and-css-support.html >> >> >> > > -- View this message in context: http://www.nabble.com/Background-Image-in-%3Cbody%3E-tag-tf3998643.html#a11358802 Sent from the Wicket - Dev mailing list archive at Nabble.com.