Hi,

On Mon, Jul 28, 2014 at 10:32 PM, Delange <[email protected]> wrote:

> Hi, after 2 years I'm almost ready with my website and strugling with the
> last thing: I have a page which contains a JCarousel with multiple images
> (jpg). A customer should click on a photo and then see the picure in a
> normal format. The photo's are stored on another location on disk and a
> retrieved with a DynamicImageResource. It almost works fine. The pictures
> are shown on screen, the carousel displays them but after clicking on the
> picture the system say the picutre is not found. Looking at the html
>  source
> i can see the the link is wrong. But HOW TO FIX A GOOD LINK??
>
> java code
>                         Link link = new Link<String>("imageLink"){
>                                 @Override
>                                 public void onClick() {
>                                 }
>
>                         };
>                         MyImage myImage = new MyImage( imageName );
>                         Image image =  new Image("image11"  , myImage );
>                         link.add(new AttributeModifier("href", "main" ));
>                         link.add(image);
>                         parent.add(link);
> the generated html is
>                 <li>
>                           <main>
>

This is very strange.
You use AttributeModifier but "main" is used as a html tag instead of as a
value of an attribute.
>From "DynamicImageResource" I understand this is Wicket 1.4 or older.
Did you solve the issue ?


>
> <../page?1-IResourceListener-form-imageContainer-mycarousel-rv-1-imageLink-image11>
>
>
>                 </li>
>
>
> --
> View this message in context:
> http://apache-wicket.1842946.n4.nabble.com/JCarousel-and-DynamicImageResource-link-not-working-tp4666777.html
> Sent from the Users forum mailing list archive at Nabble.com.
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
>
>

Reply via email to