Hi,

looking at your code I've noticed these two lines at the end of onSubmit of AjaxButton:

setModel(new CompoundPropertyModel(e));
modelChanged();

here you are changing the button's model and not the one of the parent form (the variable cmodeldefined above ), hence its components won't display the expected values. Try declaring cmodelas final and replacing the two line of codes with:

cmodel.setObject(e);
Hi,

I have the following form. It has a nested form which is for a simple file
uploading. After the upload finished I would like to get some information
from the uploaded file (eg. name, size and so one) and pass it's parent
form. Later if the parent form get submitted I will persist these data and
the file itself in HrpFiles entity.
My problem is that parent form's fields did not get refreshed.

http://pastebin.com/GaJZu8zT

TIA,

Sandor

--
View this message in context: 
http://apache-wicket.1842946.n4.nabble.com/Nested-form-model-refresh-tp4649877.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]



---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to