Tuesday, November 15, 2011

Removing ClickHandler from Button

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 google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

0 Comments:

Post a Comment

Subscribe to Post Comments [Atom]

<< Home


Real Estate