You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Sven Meier (JIRA)" <ji...@apache.org> on 2016/12/06 11:11:32 UTC
[jira] [Assigned] (WICKET-6292) Button.onSubmit not called for
multipart requests
[ https://issues.apache.org/jira/browse/WICKET-6292?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Sven Meier reassigned WICKET-6292:
----------------------------------
Assignee: Sven Meier
> 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)