Re: ResourceReference question
thanks. (just had to add this thanks post, as I haven't been around here for a while ...) Eyal Golan egola...@gmail.com 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 On Mon, Apr 20, 2009 at 7:00 PM, Igor Vaynberg wrote: > and ContextImage > > -igor > > On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen > 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 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 > >> egola...@gmail.com > >> > >> 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > >
Re: ResourceReference question
and ContextImage -igor On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen 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 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 >> egola...@gmail.com >> >> 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: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org
Re: ResourceReference question
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 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 > egola...@gmail.com > > 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 >
ResourceReference question
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 egola...@gmail.com 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