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

It is impossible to determine the form submitting component's inputName when AjaxFormSubmitBehavior is used

    Details

    • Type: Improvement
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: 6.17.0
    • Fix Version/s: 7.0.0-M5, 6.19.0
    • Component/s: wicket
    • Labels:
      None

      Description

      It is impossible to determine inputName in Form.delegateSubmit method (was working in version 1.4)

      as per Martin's comment from this thread: http://markmail.org/message/eiji4elt4mitf2m5

      I see a way to simplify this code so it will be possible to do what you
      need:
      1) AjaxFormSubmitBehavior should implement IFormSubmitter
      2) onEvent() should do: getForm().getRootForm().onFormSubmitted(this)

      then you can cast to AbstractAjaxBehavior and call getComponent() and then
      cast to IFormSubmittingComponent to get the input name

      I'm not sure whether clirr-maven-plugin will allow this change in 6.x though

      Please file a ticket and I'll take a look in the next days.

        Attachments

          Activity

            People

            • Assignee:
              mgrigorov Martin Grigorov
              Reporter:
              solomax Maxim Solodovnik
            • Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: