gwt/extjs - form not submitting

Posted by msaif on Stack Overflow See other posts from Stack Overflow or by msaif
Published on 2010-04-08T07:14:05Z Indexed on 2010/04/08 13:03 UTC
Read the original article Hit count: 606

Filed under:
|

i have form tag received from designer.

i need to submit the form from GWT given below.

FormPanel form = null;
Button submit = null;
function onModuleLoad(){
  form = FormPanel.wrap(DOM.getElementById("MyForm"));
  form.setEncoding(FormPanel.ENCODING_MULTIPART);

  submit = Button.wrap(DOM.getElementById("OK"));
  submit.addClickHandler(new ClickHandler() {
   public void onClick(ClickEvent event) {
    // button clicked confirmed
    form.submit();
   }
  });


  formSubmitHandler = form.addSubmitHandler(new SubmitHandler(){
   public void onSubmit(SubmitEvent event) {
                    }

  });
}

but form was not submitted.

designer wrote the following lines.

form action="./a.cgi" method="post" name="MyForm" id="MyForm"

input type="button" value="OK"

form

© Stack Overflow or respective owner

Related posts about gwt

Related posts about extjs