Hi Sure, just do this in your onsubmit of the form, compoundPropertyModel.setModlObject(new Contact());
OR one of the million other ways, it's just java :) 2009/4/28 HHB <[email protected]>: > 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] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
