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

Reply via email to