This is a standard feature of browsers, i.e. they submit the form when
enter key is pressed without simulating click on the submit button (if
there is any).
Viliam

On 12. Jún 2008, 07:59 h., Manjunath <[email protected]> wrote:
> Hi Team,
>
> I have problem with Form panel when the Form panel having only one
> Textbox and placing cursor on textbox and
> clicking onenterbutton  form calling onSubmit event with out calling
> form.submit() event. Is this feature in GWT or bug .
>
> Find the code below for reference.
>
> FormPanel f=null;
> public void onModuleLoad() {
>
>       f=new FormPanel();
>      TextBox t=new TextBox();
>      t.setSize("20%", "20%");
>
>     VerticalPanel textcontainerPanel=new VerticalPanel();
>     textcontainerPanel.setSize("100%","100%");
>     textcontainerPanel.add(t);
>
>    f.add(textcontainerPanel);
>
>    f.addFormHandler(new FormHandler(){
>          public void onSubmit(FormSubmitEvent event) {
>              Window.alert("b4 submiting");
>        }
>          public void onSubmitComplete(FormSubmitCompleteEvent event) {
>
>        }
>   });
>        RootPanel.get().add(f);
>
> }

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