On 26 oct, 16:57, Olivier Degreef <[email protected]> wrote:
> Hi,
>
> I would like to know if it is possible to add a handler to a form using
> UIBinder ?
>
> For example, the code for button look like this :
> @UiHandler("buttonSubmit")
>     void onClickSubmit(ClickEvent event) {
>        Window.alert("Prout");
>
> }      
>
> So, for the form, I tried :
> @UiHandler("form")
>     void onSubmitComplete(FormSubmitCompleteEvent event) {
>        Window.alert("Prout");
>
> }      
>
> But it is not working.

Try with FormPanel.SubmitCompleteEvent; FormSubmitCompleteEvent is the
old, deprecated event class (well, it's not itself @Deprecated, but
FormHandler is)

As a rule of thumb, check that the event class inherits from
com.google.gwt.event.shared.GwtEvent<?>
--~--~---------~--~----~------------~-------~--~----~
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