You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2016/12/06 13:30:59 UTC

[jira] [Commented] (WICKET-6292) Button.onSubmit not called for multipart requests

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

ASF subversion and git services commented on WICKET-6292:
---------------------------------------------------------

Commit 3824853be87af927dcde0b9cc6761f59738051a9 in wicket's branch refs/heads/master from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=3824853 ]

WICKET-6292 revert WICKET-6041 - should not access parameters before handling multipart

This reverts commit ba393ffa2bf6480d4981e4b48c7aa6a19bd5b9c6.
This reverts commit ece7575f5ea74ec27f88618fd287e4348aa9cc35.


> Button.onSubmit not called for multipart requests
> -------------------------------------------------
>
>                 Key: WICKET-6292
>                 URL: https://issues.apache.org/jira/browse/WICKET-6292
>             Project: Wicket
>          Issue Type: Bug
>    Affects Versions: 8.0.0-M2
>            Reporter: Socheat KHAUV
>            Assignee: Sven Meier
>
> {code:title=HomePage.java|borderStyle=solid}
> public class HomePage extends WebPage {
>     private static final long serialVersionUID = 1L;
>     public HomePage(final PageParameters parameters) {
>         super(parameters);
>         Form<Void> form = new Form<>("form");
>         form.setMultipart(true);
>         add(form);
>         Button components = Button.onSubmit("button", this::buttonOnSubmit);
>         form.add(components);
>     }
>     private void buttonOnSubmit(Button button) {
>         System.out.println("test");
>     }
> }
> {code}
> {code:title=HomePage.html|borderStyle=solid}
> <form wicket:id="form">
>     <input type="submit" wicket:id="button" value="Okay">
> </form>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)