See (Buffered)DynamicImageResource. Pass this resource to RequestCycle.urlFor(), this will return a context relative path to the resource. To pass that path to the .css you could use org.apache.wicket.util.template.CssTemplate
Note: The path to the image in the .css must be relative to the .css file itself! So most probably you'll have to manipulate the path returned by urlFor(). El lun, 29-06-2009 a las 02:03 +0200, Hbiloo escribió: > Hi all, > > I've a image which is dynamically generated. Now I want to use URL of > this image in a CSS file as a background of a div. > Is there a way to do that? > > Regards, > Hbiloo > > --------------------------------------------------------------------- > 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]
