You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "Guillaume CHIRON (JIRA)" <ji...@apache.org> on 2016/03/18 11:49:33 UTC

[jira] [Created] (WICKET-6125) AjaxFormComponentUpdatingBehavior - onUpdate - Field Required

Guillaume CHIRON created WICKET-6125:
----------------------------------------

             Summary: AjaxFormComponentUpdatingBehavior - onUpdate - Field Required
                 Key: WICKET-6125
                 URL: https://issues.apache.org/jira/browse/WICKET-6125
             Project: Wicket
          Issue Type: Bug
          Components: wicket
    Affects Versions: 7.2.0
            Reporter: Guillaume CHIRON
            Priority: Minor


Hello,
I use AjaxFormComponentUpdatingBehavior("change").
When a field is required and the field is empty the onUpdate method is not call.
In AjaxFormComponentUpdatingBehavior :


			if (formComponent.isValid())
			{
				if (getUpdateModel())
				{
					formComponent.valid();
					formComponent.updateModel();
				}

				onUpdate(target);
			}
			else
			{
				formComponent.invalid();

				onError(target, null);
			}

My model is not updated.





--
This message was sent by Atlassian JIRA
(v6.3.4#6332)