Hi Jonas, you need to notify those form components about their model value
change.
e.g.
formComponent.modelChanged();
target.add(formComponent);

2011/8/31 Jonas Pohlandt <jonas.pohla...@lbi.com>

> Hello everyone,
>
> in an AjaxFormComponentUpdatingBehavior callback I make some changes to the
> object which is the target of the CompundPropertyModel of a form. After the
> changes are made, I add the FormComponents (RequiredTextFields) that are
> mapped to the changed properties of the model object to the
> AjaxRequestTarget. If I log the property values to the console, I can see
> that have the expected (changed) values. Unfortunately, the FormComponents
> do not show the updates after the Ajax call returns. Interestingly, the form
> validation uses the expected/changed values after the click on a submit
> button, even though the FormComponents still show the wrong (unchanged)
> values.
>
> Is there something besides the adding of the respective components to the
> AjaxRequestTarget that I am missing here?
>
> Any help highly appreciated,
> Jonas
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
> For additional commands, e-mail: users-h...@wicket.apache.org
>
>


-- 
Pedro Henrique Oliveira dos Santos

Reply via email to