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 2019/02/01 07:49:00 UTC

[jira] [Commented] (WICKET-6184) Remove form argument from AjaxButton and AjaxSubmitLink callbacks

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

Martin Grigorov commented on WICKET-6184:
-----------------------------------------

Fixed! Thanks, [~reiern70]!

> Remove form argument from AjaxButton and AjaxSubmitLink callbacks
> -----------------------------------------------------------------
>
>                 Key: WICKET-6184
>                 URL: https://issues.apache.org/jira/browse/WICKET-6184
>             Project: Wicket
>          Issue Type: Improvement
>          Components: wicket
>    Affects Versions: 8.0.0-M1
>            Reporter: Sven Meier
>            Assignee: Sven Meier
>            Priority: Trivial
>             Fix For: 8.0.0-M1
>
>
> AjaxButton and AjaxSubmitLink supply the submitted form in their submit hooks,  e.g.:
> {code}
> protected void onSubmit(AjaxRequestTarget target, Form<?> form)
> {code}
> The form is superfluous, since it is already available via #getForm().
> We decided to remove this parameter, bringing the hooks in line with the new static lambda factories, e.g.:
> {code}
> public static AjaxSubmitLink onSubmit(String id, WicketBiConsumer<AjaxSubmitLink, AjaxRequestTarget> onSubmit)
> {code}
> Relevant discussion: http://wicket-dev.markmail.org/thread/vzzntc6wbjub3fad



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)