Sep 10, 2010, 5:31 PM
[CLOSED] FormPanel: Execute all events on the form before submit it
Hello,
I would like to do folowing:
I define a formPanel wit some controls(textfields etc...) and a button B, whose click event submit the form to the server to be saved.
The controls on the form have also events which be execute before the form is submitted. For example on blur of the control C do execute the function F.
I notice that when I enter something in the textField C and click the button B, the submit is done before the function F is called.
How can I block the submission of the form until all handler of control on the form have been executed? I don't want to delay the submission for a time, because I would want to be sure that all handler are executed and the estimation of this time can be difficult.
Any idea?
Romuald.
I would like to do folowing:
I define a formPanel wit some controls(textfields etc...) and a button B, whose click event submit the form to the server to be saved.
The controls on the form have also events which be execute before the form is submitted. For example on blur of the control C do execute the function F.
I notice that when I enter something in the textField C and click the button B, the submit is done before the function F is called.
How can I block the submission of the form until all handler of control on the form have been executed? I don't want to delay the submission for a time, because I would want to be sure that all handler are executed and the estimation of this time can be difficult.
Any idea?
Romuald.
Last edited by Daniil; Sep 14, 2010 at 7:56 PM.
Reason: [CLOSED]