开发者

GWT FormPanel not submitting in IE - works fine on FF, Chrome, Safari

开发者 https://www.devze.com 2022-12-15 08:26 出处:网络
I am using a simple FormPanel in 开发者_如何学CGWT (com.google.gwt.user.client.ui.FormPanel). Once setting theaction for the form, in Firefox, Safari, Chrome the submit method works fine while in IE

I am using a simple FormPanel in 开发者_如何学CGWT (com.google.gwt.user.client.ui.FormPanel).

Once setting the action for the form, in Firefox, Safari, Chrome the submit method works fine while in IE (8) nothing happens when submit is called (I am submitting a form to paypal, not that it matters).

I am on GWT 2.0. Is this some kind of known problem? Been looking around but couldn't find anything on the subject.

Any help appreciated!


Check that the button you are using to submit the form is added to the Panel as well as the hidden fields. I got caught by it once, working on some browsers, not working in IE!


I had the same problem some time ago. I solved it by changing the orders of the elements that belong to the FormPanel (can't remember exactly what was the order).

Try one of these:

  • Panel first: Add the FormPanel to the main document (either through RootPanel or any other container that is already attached to the document) and then add the FormPanel's elements
  • Panel elements first: Add all the form elements to the FormPanel, then attach the FormPanel to the main document


Are you using hidden fields?

If so try putting them into a separate HorizontalPanel which is than added the the form panel.

Have you tried sniffing the traffic, maybe the form is submitted and it is some other kind of problem?

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号