Hey,
Usually, I set the model for a form like this:
final Form form = new Form("form",
new CompoundPropertyModel(new Contact()));
But when the panel or the modalwindow that contains
the form is rendered again, the model's values are still saved and displayed.
So upon successful operation, I do the following to erase values:
form.setModel(new CompoundPropertyModel(new Contact()));
Is there a better way? like overriding a specific method?
Thanks for help and time.
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]