Set a null/empty value in their model plus notify the component about changed models e.g. Component#modelChanged. e.g. form = new Form(new CompoundPropertyModel(new Bean()) form.add(new Field("someProperty"); (...) form.add(new SubmitComponent("id"){ onSubmit(){ form.setDefaultModelObject(new Bean());//set empty values also calls Component#modelChanged method }});
On Mon, Mar 28, 2011 at 1:29 PM, hariharansrc <hariharan...@gmail.com>wrote: > after clicking submit button the values are still there in field itself how > to clear the field values > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/how-to-call-javascript-function-on-form-submission-tp3408147p3412291.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org > For additional commands, e-mail: users-h...@wicket.apache.org > > -- Pedro Henrique Oliveira dos Santos