Uploaded image for project: 'Wicket'
  1. Wicket
  2. WICKET-6184

Remove form argument from AjaxButton and AjaxSubmitLink callbacks

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Resolved
    • Trivial
    • Resolution: Fixed
    • 8.0.0-M1
    • 8.0.0-M1
    • wicket
    • None

    Description

      AjaxButton and AjaxSubmitLink supply the submitted form in their submit hooks, e.g.:

      protected void onSubmit(AjaxRequestTarget target, Form<?> form)
      

      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.:

      public static AjaxSubmitLink onSubmit(String id, WicketBiConsumer<AjaxSubmitLink, AjaxRequestTarget> onSubmit)
      

      Relevant discussion: http://wicket-dev.markmail.org/thread/vzzntc6wbjub3fad

      Attachments

        Activity

          People

            svenmeier Sven Meier
            svenmeier Sven Meier
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: