This is a solution or you can simply youse handlers provided by GWT,
using button.Onclick(){ form.submit();} and the others 2 form handlers.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Google Web Toolkit group.
yeah for sure I could do that but my situation was I needed to use
form.submit() in native method which is javascript.
So I just found a way to go around that problem. instead of using
form.submit() in native method, I just call java method from JSNI
navtive.
Thanks for the comment.
On Jul 30
Hello guys,
I have a problem which I've created FormPanel using GWT and perform
some java script method before submiting the form.
So, I defined a native method which does the some job before
submitting the form.
document.form.submit() -- not working
$wnd.document.form.submit() -- not working
I found the way to do it. :-)
I called java method which include FormPanel Objcet to submit from
native method.
like this :
th...@com.test.sample.server.web.client.ui.serverwidget::formSubmit()
(); -- this placed inside of native method
private void formSubmit(){
formPanel.submit();
}