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/06/18 20:27:05 UTC
[jira] [Commented] (WICKET-6184) Remove form argument from
AjaxButton and AjaxLink callbacks
[ https://issues.apache.org/jira/browse/WICKET-6184?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15338159#comment-15338159 ]
ASF subversion and git services commented on WICKET-6184:
---------------------------------------------------------
Commit bd526717d566e542982689ae3fbfba6584072c24 in wicket's branch refs/heads/master from [~svenmeier]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=bd52671 ]
WICKET-6184 remove form argument from ajax hooks
> Remove form argument from AjaxButton and AjaxLink 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
>
> AjaxButton and AjaxLink 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
(v6.3.4#6332)