Re: ResourceReference question

2009-04-21 Thread Eyal Golan
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 igor.vaynb...@gmail.comwrote:

 and ContextImage

 -igor

 On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen
 richard.l.al...@gmail.com 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 egola...@gmail.com 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




ResourceReference question

2009-04-20 Thread Eyal Golan
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


Re: ResourceReference question

2009-04-20 Thread Richard Allen
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 egola...@gmail.com 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



Re: ResourceReference question

2009-04-20 Thread Igor Vaynberg
and ContextImage

-igor

On Mon, Apr 20, 2009 at 5:21 AM, Richard Allen
richard.l.al...@gmail.com 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 egola...@gmail.com 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