and ContextImage -igor
On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen <[email protected]> wrote: > I believe you want to use ContextRelativeResource. See: > http://wicket.apache.org/docs/1.4/index.html?org/apache/wicket/resource/ContextRelativeResource.html > > > On Mon, Apr 20, 2009 at 6:43 AM, Eyal Golan <[email protected]> wrote: > >> Hello, >> I've been looking for an answer but couldn't find it. >> We have a page that adds an image: >> add(new Image("iconImage", new Model(imageResourceReference))); >> >> The problem is with the ResourceReference. >> I found only one option for the location of the image file. The location >> should be next to a class so I could do something like: >> final ResourceReference resourceReference = new >> ResourceReference(EntityBrowserPage.class, "img/myIcon.png"); >> >> All of our images are located under 'images' folder, which is under webapp. >> Is it possible to get a ResourceReference from there. >> We don't want to duplicate our images. >> >> Thanks >> >> >> Eyal Golan >> [email protected] >> >> Visit: http://jvdrums.sourceforge.net/ >> LinkedIn: http://www.linkedin.com/in/egolan74 >> >> P Save a tree. Please don't print this e-mail unless it's really necessary >> > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
