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

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

     [ https://issues.apache.org/jira/browse/WICKET-6125?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Martin Grigorov resolved WICKET-6125.
-------------------------------------
    Resolution: Not A Problem

Please use users@ mailing list of StackOverflow for help!

> 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
>              Labels: ajax
>
> 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)