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 <[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] > > -- Become a Wicket expert, learn from the best: http://wicketinaction.com --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
