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 <[email protected]>wrote:

> use Image with DynamicImageResource which loads the image with
> urlConnection
>
> On Tue, Jun 7, 2011 at 11:46 PM, Daniele Dellafiore <[email protected]>
> 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 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);
> >
> > This of course does not work cause the base of the ContextImage points to
> 9191.
> >
> > I could use something else but I like ContextImage, One idea is to
> > have something like a filter set up in web.xml that redirect each call
> > to /images to a custom url like localhost:8181/images.
> >
> > What do you think? Also, I really do not have a clear idea on how to
> > do that in a nice way, any tip?
> >
> > --
> > Daniele Dellafiore
> > http://danieledellafiore.net
> >
> > ---------------------------------------------------------------------
> > To unsubscribe, e-mail: [email protected]
> > For additional commands, e-mail: [email protected]
> >
> >
>
>
>
> --
> Martin Grigorov
> jWeekend
> Training, Consulting, Development
> http://jWeekend.com
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>


-- 
Daniele Dellafiore
http://danieledellafiore.net

Reply via email to