[
https://issues.apache.org/jira/browse/WICKET-4641?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13420539#comment-13420539
]
Martin Grigorov commented on WICKET-4641:
-----------------------------------------
The problem is that you use a Link for <input type="button">. If you use a Link
with <a> or AjaxFallbackButton with <input type="button"> then all is fine.
I understand that the problem is in Wicket because it generates the attributes
and their values but I think the benefit of this warning is bigger than the
problem in this ticket.
Using AjaxFallbackLink with any other HTML element but <a>, <area> and <link>
will NOT actually fallback if JavaScript is switched off because Wicket uses
"onclick" when "href" is not an option. AjaxFallbackLink's javadoc in Wicket
6.x explains that.
> AjaxFallbackLink and log a warning when there are several ajax event
> behaviors on the same event
> ------------------------------------------------------------------------------------------------
>
> Key: WICKET-4641
> URL: https://issues.apache.org/jira/browse/WICKET-4641
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 1.5.7
> Reporter: André Camilo
> Priority: Minor
> Attachments: ajaxlink_fallback_bug.zip
>
>
> When I was using an AjaxFallbackLink I got the warning about multiple
> Behaviours changing the "onclick" attribute.
> I changed it to AjaxLink and the warning disappeared.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira