Hi, sounds good - I am going to change the ticket description soon and try to implement it.
kind regards Tobias > Am 23.11.2015 um 15:45 schrieb Sebastien <[email protected]>: > > Hi Tobias, > > Sorry for the late reply, busy day... > > Actually Image(String id, IModel model, String url) will not help in this > case, I need the url to be in the model, but external url doesn't work with > Image... I was more thinking about an ExternalImage component.... > > Does it make sense to you? > > Thanks & best regards, > Sebastien. > > > On Mon, Nov 23, 2015 at 6:05 AM, Tobias Soloschenko < > [email protected]> wrote: > >> Hi, >> >> maybe we can extend the normal image and add a constructor Image(String >> id, IModel model, String url) so that the url is used in the src attribute >> (like in MediaComponents) >> >> WDYT? >> >> kind regards >> >> Tobias >> >>> Am 23.11.2015 um 03:45 schrieb Maxim Solodovnik <[email protected]>: >>> >>> 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 <[email protected]> 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 <[email protected]> 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 >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: [email protected] >> For additional commands, e-mail: [email protected] >> >> --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
