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)

Reply via email to