For HandlerRegistration this is how I do.

               HandlerRegistration buttonHandler;
....
.....
if(buttonHandler != null) {
buttonHandler .removeHandler();
}
Button button = new Button("Create");
buttonHandler = button.addClickHandler(new NewProductHandlerRpc());
...



On Tue, Nov 15, 2011 at 3:33 PM, CM <[email protected]>wrote:

> Hi
>
> I have a link that shows a dialog box that asks for some input. I have
> two buttons on the dialog box:
>
> 1) Send request to server
>
> 2) Cancel and close i.e. hide the dialog box
>
> If you click on the cancel it hides the dialog, but if you then re-
> click on the link to open the dialog box and Send the request the
> server it sends the input twice.
>
> I think this is because addClickhandler is added twice as the dialog
> has been open twice. To stop this do I remove the Click handler when
> cancel button is closed?
>
> Do I have to use the HandlerRegistration to do this?
>
> Does anyone have any good examples they could post.
>
> I am not able to post the code at the moment but can do later when
> home...
>
> Thanks in advance
>
> CM
>
> --
> 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.
>
>


-- 
Regards
Suresh Babu G

<http://www.accountingguru.in/>

-- 
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