The question is how to convert file path (photos/img01.jpg) into
wicket url (resources/eu.test.PhotoRepeater/photos/img01.jpg)?
Constructor for Image do this when I call Image("image", path)
but not so for Link.
I check link you provide for me but not found the answer :-(
> -----Original Message-----
> From: Zilvinas Vilutis [mailto:[email protected]]
> Sent: Tuesday, December 14, 2010 1:42 AM
> To: [email protected]
> Subject: Re: resource for href="...
>
> Why don't you just check-out the source code of wicket lightbox:
> http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuf
> f-lightbox
> to check how it's done there once you decided to write your own one...
>
> Regards
>
> Žilvinas Vilutis
>
> Mobile: (+370) 652 38353
> E-mail: [email protected]
>
>
>
> 2010/12/13 Ladislav DANKO <[email protected]>:
> > It is link for lightbox so it will know where the image for
> display is.
> >
> > Laco
> >
> >
> >> -----Original Message-----
> >> From: [email protected]
> >> [mailto:[email protected]] On Behalf Of James Carman
> >> Sent: Monday, December 13, 2010 2:24 PM
> >> To: [email protected]
> >> Subject: Re: resource for href="...
> >>
> >> What do you want it to do when you click it?
> >>
> >> 2010/12/13 Ladislav DANKO <[email protected]>:
> >> > No, I don't need to download it, what I need is right
> path in href
> >> > attribute in anchor html tag as is in img html tag (created
> >> as new Image).
> >> >
> >> >
> >> >> -----Original Message-----
> >> >> From: [email protected]
> >> >> [mailto:[email protected]] On Behalf Of James Carman
> >> >> Sent: Monday, December 13, 2010 12:13 AM
> >> >> To: [email protected]
> >> >> Subject: Re: resource for href="...
> >> >>
> >> >> You want it to download the image? Try DownloadLink.
> >> >>
> >> >> On Sun, Dec 12, 2010 at 6:02 PM, Ladislav DANKO <[email protected]>
> >> >> wrote:
> >> >> > Hi guys,
> >> >> >
> >> >> > another question -have code (PhotoRepeater extends
> Panel, view
> >> >> > is
> >> >> > RepeatingView):
> >> >> > ...
> >> >> > String compID = view.newChildId(); PhotoRepeater
> clickableImg =
> >> >> > new PhotoRepeater(compID); clickableImg.add(new
> >> >> > ExternalLink("fotoPath", path).add(new Image("image",
> path)));
> >> >> > view.add(clickableImg);
> >> this.add(view); ..
> >> >> >
> >> >> > and markup:
> >> >> > <wicket:panel>
> >> >> > <a wicket:id="fotoPath" title=""
> rel="lightbox[svatebni]"
> >> >> > href="#">
> >> >> > <img wicket:id="image" width="90px"
> >> border="2px" />
> >> >> > </a>
> >> >> > </wicket:panel>
> >> >> >
> >> >> > It works, but in final markup there is:
> >> >> > <a href="photo/01_sv_76.jpg" rel="lightbox[test]" title="">
> >> >> > <img border="2px" width="90px"
> >> >> >
> >> src="resources/eu.testApp.MyPagePhotoRepeater/phfoto/01_sv_76.jpg"/
> >> >> > >
> >> >> > </a>
> >> >> >
> >> >> > so image is shown (right path to image resource) but not
> >> clickable
> >> >> > (wrong path). I'm using ExternalLink in wrong way but I
> >> >> don't know the
> >> >> > right way. Can you help me gyus, please?
> >> >> >
> >> >> > Laco
> >> >> >
> >> >> >
> >> >> >
> >> >>
> >>
> ---------------------------------------------------------------------
> >> >> > 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]
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >>
> ---------------------------------------------------------------------
> >> > 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]
> >>
> >>
> >
> >
> >
> ---------------------------------------------------------------------
> > 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]
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]