[ 
https://issues.apache.org/jira/browse/WICKET-3930?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13070244#comment-13070244
 ] 

George Armhold commented on WICKET-3930:
----------------------------------------

There is also a short discussion of this on stackoverflow: 
http://stackoverflow.com/questions/6228524/using-images-for-links-with-wicketlink.


> wicket:link loads image via onclick() instead of the referenced page when an 
> anchor tag includes an img
> -------------------------------------------------------------------------------------------------------
>
>                 Key: WICKET-3930
>                 URL: https://issues.apache.org/jira/browse/WICKET-3930
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket-core
>    Affects Versions: 1.4.17
>         Environment: Mac OSX 10.7, Java 1.6.0_26
>            Reporter: George Armhold
>              Labels: linking
>         Attachments: wicket-link-bug.tar.gz
>
>
> With the following markup, I expect that clicking on the image will result in 
> the browser loading AnotherPage:
>         <a href="AnotherPage.html">
>             <img src="java-logo.png"/>
>         </a>
> Instead, the image itself it shown, due to the onclick() handler that 
> wicket:link is adding.
> I will include a quickstart to demonstrate.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to