Why don't you just check-out the source code of wicket lightbox: http://wicketstuff.org/confluence/display/STUFFWIKI/wicketstuff-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: cika...@gmail.com 2010/12/13 Ladislav DANKO <em...@1ac0.net>: > It is link for lightbox so it will know where the image for display is. > > Laco > > >> -----Original Message----- >> From: jcar...@carmanconsulting.com >> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman >> Sent: Monday, December 13, 2010 2:24 PM >> To: users@wicket.apache.org >> Subject: Re: resource for href="... >> >> What do you want it to do when you click it? >> >> 2010/12/13 Ladislav DANKO <em...@1ac0.net>: >> > 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: jcar...@carmanconsulting.com >> >> [mailto:jcar...@carmanconsulting.com] On Behalf Of James Carman >> >> Sent: Monday, December 13, 2010 12:13 AM >> >> To: users@wicket.apache.org >> >> 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 <em...@1ac0.net> >> >> 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: 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 >> >> >> >> >> > >> > >> > >> --------------------------------------------------------------------- >> > 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 >> >> > > > --------------------------------------------------------------------- > 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