Hi,

can somebody explain what AjaxRequestAttributes#setSubmittingComponentName() is for?
It is set by AjaxFormSubmitBehavior#updateAjaxAttributes() only.

Why I'm asking?
When a form is submitted by an AjaxFormSubmitBehavior, we have an inconsistency between WicketTester and a real submit from the browser: In the former case Form#findSubmittingButton() returns null, in the latter case it returns the Button the AjaxFormSubmitBehavior is bound to.

It seems that #setSubmittingComponentName() is superfluous because the AjaxFormSubmitBehavior will be triggered as the form submitter anyway. Strictly speaking the button is *not* the form submitter but the behavior is, so it makes sense that #findSubmittingButton() should return null.

Any thoughts?

Sven

Reply via email to