One solution that i can suggest for this is keep that button in disable
state until user fill up the form fields.

and once all compulsory fields got filled properly make that button enable
and will have seperate click handlers in that case.

--
Aditya


On Fri, Oct 15, 2010 at 3:32 PM, pepgrifell <pepgrif...@gmail.com> wrote:

> hi,
>
> I have a window with some form fields and 2 buttons, "add" and
> "cancel". One of the fields has a listener associated. The listener
> does a RPC call to the server to do a validation and it can update the
> value. The listener is fired when the field loses the focus. The
> button "add" sends the data into the form fields to the server side
> with another RPC call.
>
> The problem that I have is:
>
> If I change the value of the field, and, without losing the focus, I
> click in the "add" button, then two RPC calls are done, the one inside
> the listener and the one associated to the button. I would like that
> the action associated with the button would be called after the
> listener action (RPC call) has finished. Is there any way of doing
> this ?
>
> Thanks !
>
> --
> You received this message because you are subscribed to the Google Groups
> "Google Web Toolkit" group.
> To post to this group, send email to google-web-tool...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-web-toolkit+unsubscr...@googlegroups.com<google-web-toolkit%2bunsubscr...@googlegroups.com>
> .
> For more options, visit this group at
> http://groups.google.com/group/google-web-toolkit?hl=en.
>
>

-- 
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to google-web-tool...@googlegroups.com.
To unsubscribe from this group, send email to 
google-web-toolkit+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-web-toolkit?hl=en.

Reply via email to