i did this target.addComponent(createTemplateForm); but still its not clearing.
i actually have one page which has one panel(manageAATemplatePanel), this panel has one ajaxLink and one dailog(createDialog). On click of link this dialog box opens which contains one panel(createAATemplatePanel). The createAATemplatePanel contains a form and an ajaxButton. inside onSubmit of this button im doing some processing and want to clear the form inputs. after clearing the form input im refreshing the manageAATemplatePanel by doing new ManageAATemplatePanel("rightPanel") which will do following in its constructor final Dialog createDialog = new Dialog("dialogPanel"); createDialog.setCssClass("noTitleDialog"); createDialog.setModal(true).setWidth(850).setHeight(475) .setOutputMarkupId(true).setMarkupId("create"); createDialog.setAutoOpen(false); Panel createPanel = new CreateAATemplate("createAATemplatePanel"); createDialog.add(createPanel); manageTemplateForm.add(createDialog); so actually im creating an altogether new createAATemplatePanel and which should not have any previous values but it still comes up with the previously filled values pls guide -- View this message in context: http://apache-wicket.1842946.n4.nabble.com/resetting-form-components-tp3640382p3641651.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