Jag schrieb:

>         I am using GWT forms to do file uploads. In one of my cases i
> want to validate the name given in the Textbox of the form. To
> validate the name i have to request the server for the names available
> already. To validate this inside the FormHandlers OnSubmit method i
> request the server and on invalid name i cancel the form submit. But
> before the response is received, the form handlers completes and
> submits the form. How this can be resolved?

Instead of placing the validate-call inside the onSubmit of the
form, add a ClickListener to the Button that the user presses
to submit the form, do the validation-check there and place the
form.submit()-call inside the onSuccess-method.


Regards, Lothar

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to