wicket-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi <ruchi0...@gmail.com>
Subject resetting form components
Date Sat, 02 Jul 2011 11:10:16 GMT

im taking input from user in the form components and trying to reset them
when they are shown next time, i have tried doing form.clearInput(), i have
also set model values to blank, and also done form.modelChanged() after
setting the default model. 
i have also specifically set the nameField.setModelValue(new String[] {""});
but nothings working. 
please could somebdy tell me what im doing wrong, here's the code snippet: 

im doing the following on button submit after my all other processing: 

reateTemplateForm.setDefaultModelObject(new CreateTemplateModel()); 
nameField.setModelValue(new String[] {""}); 
descField.setModelValue(new String[] {""}); 

thanks in advance 

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

To unsubscribe, e-mail: users-unsubscribe@wicket.apache.org
For additional commands, e-mail: users-help@wicket.apache.org

View raw message