Hi Martin, Yes, but UrlResourceReference does not work with/like a [compound]model...
Thanks & best regards, Sebastien. On Tue, Nov 24, 2015 at 2:11 PM, Martin Grigorov <mgrigo...@apache.org> wrote: > Hi, > > Just to make it a little bit confusing: have you considered "new > Image("id", new UrlResourceReference("...")) ? > > Martin Grigorov > Wicket Training and Consulting > https://twitter.com/mtgrigorov > > On Tue, Nov 24, 2015 at 1:43 PM, Tobias Soloschenko < > tobiassolosche...@googlemail.com> wrote: > > > I finished it, yesterday. > > > > Going to push it this evening. (First to my repo and create a pull > request) > > > > kind regards > > > > Tobias > > > > > Am 24.11.2015 um 03:31 schrieb Maxim Solodovnik <solomax...@gmail.com > >: > > > > > > Also thanks from me :) > > > > > >> On Mon, Nov 23, 2015 at 9:17 PM, Sebastien <seb...@gmail.com> wrote: > > >> > > >> Thanks a million Tobias! :) > > >> > > >> On Mon, Nov 23, 2015 at 4:09 PM, Tobias Soloschenko < > > >> tobiassolosche...@googlemail.com> wrote: > > >> > > >>> 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 <seb...@gmail.com>: > > >>>> > > >>>> 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 < > > >>>> tobiassolosche...@googlemail.com> 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 < > > >> solomax...@gmail.com > > >>>> : > > >>>>>> > > >>>>>> 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 > > >>>>> > > >>>>> > --------------------------------------------------------------------- > > >>>>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >>>>> For additional commands, e-mail: users-h...@wicket.apache.org > > >>> > > >>> --------------------------------------------------------------------- > > >>> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > >>> For additional commands, e-mail: users-h...@wicket.apache.org > > > > > > > > > > > > -- > > > WBR > > > Maxim aka solomax > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > > For additional commands, e-mail: users-h...@wicket.apache.org > > > > >