Re: images as resources

2010-05-09 Thread Igor Vaynberg
you can build a url using requestcycle.urlfor(new
resourcereference(class in the same package as image, image name));

armed with that you can build any kind of component you need..

-igor


On Fri, May 7, 2010 at 9:11 AM, Christoph Grün chris...@gmx.at wrote:
 Hi,

 I would like to have all images in a folder under resources and access them
 in different panels, which are in the package

 com.web.panels;



 What is the best way to do this and how to define the relative path?



 Thanks, Christoph







-
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



images as resources

2010-05-07 Thread Christoph Grün
Hi,

I would like to have all images in a folder under resources and access them
in different panels, which are in the package

com.web.panels;

 

What is the best way to do this and how to define the relative path?

 

Thanks, Christoph