Re: ContextImage and external URL

2011-06-08 Thread Martijn Dashorst
I would create your own 'ContextImage' that does exactly what you want. Extend component, override oncomponenttag and put the model value into the src attribute. Martijn On Tue, Jun 7, 2011 at 11:46 PM, Daniele Dellafiore wrote: > Hi. > > I take some user uploaded images from an external service

Re: ContextImage and external URL

2011-06-08 Thread Daniele Dellafiore
Do you think that can be good also if I want to let the browser cache some images? I serve thumbnails that I do not want to be server every time. On Tue, Jun 7, 2011 at 11:52 PM, Martin Grigorov wrote: > use Image with DynamicImageResource which loads the image with > urlConnection > > On Tue, J

Re: ContextImage and external URL

2011-06-07 Thread Martin Grigorov
use Image with DynamicImageResource which loads the image with urlConnection On Tue, Jun 7, 2011 at 11:46 PM, Daniele Dellafiore wrote: > Hi. > > I take some user uploaded images from an external service that answer > at, say, localhost:8181/images > My wicket app run on localhost:9191/app > I wa

ContextImage and external URL

2011-06-07 Thread Daniele Dellafiore
Hi. I take some user uploaded images from an external service that answer at, say, localhost:8181/images My wicket app run on localhost:9191/app I want to load the images from the first service, and I'd like to use a ContextImage that is easy to use: new ContextImage("picture", "images/ + code);