PDA

View Full Version : Multiple FormPanel.onSubmit Firings



Elly
15 Mar 2012, 9:53 AM
I have a FormPanel, and a submit event listener on same:

formPanel.addListener(Events.Submit, new Listener<FormEvent>() {
public void handleEvent(FormEvent be) {...

My problem is that if I submit the form a second time, the submit event fires twice after the second submission completes; if I submit a third time, it fires three times, etc. I want to display a modal message box each time the event is handled; for submissions following the first one, the message box thus appears multiple times.

It looks like the events are retained and either stacked or queued. It it possible to clear them out after processing each firing or before submitting the second time?

Thanks.