You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@wicket.apache.org by "ASF subversion and git services (JIRA)" <ji...@apache.org> on 2014/08/06 14:28:12 UTC

[jira] [Commented] (WICKET-5658) AjaxFormComponentUpdatingBehavior should not clear the rawInput when updateModel is false

    [ https://issues.apache.org/jira/browse/WICKET-5658?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14087599#comment-14087599 ] 

ASF subversion and git services commented on WICKET-5658:
---------------------------------------------------------

Commit 8dd3133e7725873098e04f0de9bcd1284c42a70e in wicket's branch refs/heads/wicket-6.x from [~mgrigorov]
[ https://git-wip-us.apache.org/repos/asf?p=wicket.git;h=8dd3133 ]

WICKET-5658 AjaxFormComponentUpdatingBehavior should not clear the rawInput when updateModel is false


> AjaxFormComponentUpdatingBehavior should not clear the rawInput when updateModel is false
> -----------------------------------------------------------------------------------------
>
>                 Key: WICKET-5658
>                 URL: https://issues.apache.org/jira/browse/WICKET-5658
>             Project: Wicket
>          Issue Type: Bug
>          Components: wicket
>    Affects Versions: 6.16.0
>            Reporter: Ilia Naryzhny
>            Assignee: Martin Grigorov
>              Labels: ajax, dropdown
>             Fix For: 7.0.0-M3, 6.17.0
>
>
> Setup: case requires OnChangeAjaxBehavior with getUpdateModel returning false on DropDownChoice.
> Result: ajax response contain model's object, but not new value.
> Explanation: There is following lines in AjaxFormComponentUpdatingBehaviour
> 			formComponent.inputChanged();
> 			formComponent.validate();
> 			if (formComponent.isValid())
> 			{
> >>>>>>>>		formComponent.valid();
> 				if (getUpdateModel())
> 				{
> 					formComponent.updateModel();
> 				}
> 				onUpdate(target);
> 			}
> Let me note that "formComponent.valid()" is cleaning raw Input. But it's required in subsequent AbstractChoice.onComponentTagBody.



--
This message was sent by Atlassian JIRA
(v6.2#6252)