You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Ernesto Reinaldo Barreiro (JIRA)" <ji...@apache.org> on 2019/02/01 05:49:00 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=16757996#comment-16757996 ]
Ernesto Reinaldo Barreiro commented on WICKET-6184:
---------------------------------------------------
Just a minor stupid comment, Should it be AjaxSubmitLink instead of AjaxLink? On title and also in migration guide?
> 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
> Fix For: 8.0.0-M1
>
>
> 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
(v7.6.3#76005)