You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Martin Grigorov (JIRA)" <ji...@apache.org> on 2014/05/20 16:46:39 UTC
[jira] [Commented] (WICKET-5599) Cannot set response within a
AjaxSubmitLink with button markup
[ https://issues.apache.org/jira/browse/WICKET-5599?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14003386#comment-14003386 ]
Martin Grigorov commented on WICKET-5599:
-----------------------------------------
Why do you use <button> instead of <a> for a Link component ?
I am aware that Wicket doesn't stop you. I am just trying to figure out whether it is a good idea to forbid this.
> Cannot set response within a AjaxSubmitLink with button markup
> --------------------------------------------------------------
>
> Key: WICKET-5599
> URL: https://issues.apache.org/jira/browse/WICKET-5599
> Project: Wicket
> Issue Type: Bug
> Components: wicket
> Affects Versions: 7.0.0-M1
> Environment: linux tomcat
> Reporter: Peter Henderson
> Attachments: myproject.tar.gz
>
>
> A change from 6.15 where this worked.
> Using a <button> in the markup and AjaxSubmitLink in the code, I can no longer set the response page from within onSubmit
> public void onSubmit(AjaxRequestTarget art, Form form) {
> System.out.println("In onSubmit");
> setResponsePage(new Page2(new PageParameters()));
> }
--
This message was sent by Atlassian JIRA
(v6.2#6252)