What version of GWT are you using Viliam, form.addFormPanel() doesn't
seem to exist anymore?

On Apr 27, 12:32 am, Viliam Durina <[email protected]> wrote:
> There is even a simpler solution without using JSNI at all. Set the
> form's action to just "javascript:;" and put the login logic to the
> form's submitHandler:
>
>   FormPanel form =
> FormPanel.wrap(Document.get().getElementById("login"), false);
>   form.setAction("javascript:;");
>
>   form.addFormPanel(new FormPanel() {
>      public void onSubmit(FormSubmitEvent event) {
>         // do some validation before submitting (non-empty fields)
>         // and call event.setCancelled(true) if needed.
>
>         // get the fields values and do your GWT-RPC call or
>         // RequestBuilder thing here.
>       }
>       public void onSubmitComplete(FormSubmitCompleteEvent event) {
>          // will never be called.
>       }
>    });
>
> Tested in IE8, firefox 3.5 and chrome 4.1 and chrome 5 beta, works in
> the first two, the last two don't offer to save the password.
> Confirmed with Thomas Broyer that the original solution does not work
> there either. Going to file a bug there.
>
> Viliam
>
> --
> 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 
> athttp://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 [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