IE7 and 9 don't like METHOD_POST

12 views
Skip to first unread message

slowpoison

unread,
Jul 1, 2011, 2:22:05 PM7/1/11
to google-we...@googlegroups.com
My GWT app uses a FormPanel with method set to 'METHOD_POST' in ui.xml. This causes both IE7 and 9 to complain about it saying "invalid argument". If I change it to 'POST' manually, it works. What gives?

I'm having trouble that this is an oversight on GWT's part. Is there anything I am missing?

Thomas Broyer

unread,
Jul 1, 2011, 2:37:26 PM7/1/11
to google-we...@googlegroups.com
METHOD_POST and METHOD_GET are constants of type String; setAction on FormPanel takes a String argument. So the value you put in the ui.xml is the String value you set directly, so you should use "POST", not "METHOD_POST".

That would be different with an enum value, but here it's only String.

slowpoison

unread,
Jul 1, 2011, 2:40:59 PM7/1/11
to google-we...@googlegroups.com
On Friday, July 1, 2011 11:37:26 AM UTC-7, Thomas Broyer wrote:
METHOD_POST and METHOD_GET are constants of type String; setAction on FormPanel takes a String argument. So the value you put in the ui.xml is the String value you set directly, so you should use "POST", not "METHOD_POST".

In that case, it's the GWT Desinger's fault, because I chose a value from the drop-down. Nonetheless, thanks. 
Reply all
Reply to author
Forward
0 new messages