in css image urls are relative to the css file. so if your css file is in a java package and your images are nearby it should all work as long as you serve css file through wicket - which will then cause all your images to also be served through wicket.
-igor On Tue, Dec 16, 2008 at 3:48 AM, Adriano dos Santos Fernandes <[email protected]> wrote: > Knowing about HeaderContributor.forCss, I didn't realized that the images > urls would be correctly resolved. > > Thanks. > > Wicket is so cool. :-) > > > Adriano > > > Martijn Dashorst escreveu: >> >> See HeaderContributor.forCss() >> >> Martijn >> >> On Tue, Dec 16, 2008 at 10:51 AM, Adriano dos Santos Fernandes >> <[email protected]> wrote: >> >>> >>> No good/better way? The problem of using the web directory is that I >>> can't >>> do that with non-web utility projects in Eclipse and have the files being >>> contributed to web projects. >>> >>> >>> Adriano >>> >>> >>> Adriano dos Santos Fernandes escreveu: >>> >>>> >>>> Hi! >>>> >>>> What is the better way to handle CSS urls [background: url(...)], inside >>>> HTML <style> tags? >>>> >>>> As I see, <wicket:link> doesn't work, so I'm writing url(style.css) and >>>> putting style.css on the normal html directory. Obviously, this don't >>>> work >>>> if I mount pages with path different than "/". >>>> >>>> >>>> Adriano >>>> >>>> >>>> --------------------------------------------------------------------- >>>> To unsubscribe, e-mail: [email protected] >>>> For additional commands, e-mail: [email protected] >>>> >>>> >>> >>> --------------------------------------------------------------------- >>> To unsubscribe, e-mail: [email protected] >>> For additional commands, e-mail: [email protected] >>> >>> >>> >> >> >> >> > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
