Actually I'm using "hacky" way: if (absolute) { profile.add(new WebMarkupContainer("img").add(AttributeModifier.append("alt", Application.getString(5L)), AttributeModifier.append("src", uri))); } else { profile.add(new Image("img", new ByteArrayResource("image/jpeg") { ..........................
Would love to know if is there any better way On Mon, Nov 23, 2015 at 4:34 AM, Sebastien <seb...@gmail.com> wrote: > Forgot to mention I've read the following wiki, but as it was a little bit > old I was wondering if there was nothing newer... > > https://cwiki.apache.org/confluence/display/WICKET/How+to+load+an+external+image > > > On Sun, Nov 22, 2015 at 11:31 PM, Sebastien <seb...@gmail.com> wrote: > > > Hi all, > > > > I cannot find an Image component that could display an image from an > > *external* url, supplied by the model object. My use-case is that I have > a > > user object, which have a gravatarUrl property, and I would like to do > > something like "this.add(new ExternalImage("gravatarUrl"));"... > > > > Isn't there any component that actually exists which could do this? > > > > Many thanks in advance, > > Sebastien > > > > > -- WBR Maxim aka solomax