use Image with DynamicImageResource which loads the image with urlConnection
On Tue, Jun 7, 2011 at 11:46 PM, Daniele Dellafiore <ilde...@gmail.com> 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: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org