Hello
i have a problem. i use a form to save a new record. after saving, i hope to reset the form. so, my code like..
the problem happen when i use validation. i find that the addForm.reset() will been executed after validate. so, the warning will been refreashed.
so, i hope that i can reset my form after saving correctly. And, i can show validation warning when i saving incorrectly. How can i do??
Thank you.
i have a problem. i use a form to save a new record. after saving, i hope to reset the form. so, my code like..
Code:
IButton addButton = new IButton("Save New"); addButton.addClickHandler(new ClickHandler() { public void onClick(ClickEvent event) { addForm.saveData(); addForm.reset(); } });
so, i hope that i can reset my form after saving correctly. And, i can show validation warning when i saving incorrectly. How can i do??
Thank you.
Comment