Check the Javadoc: FormPanel.SubmitCompleteEvent getResults() does not return XML, it returns HTML. Your HttpServletResponse should call setContentType("text/html") and you should return HTML or plain text, not XML.
If you try to return an XML, the results will vary between browsers. I recently went through some testing of this:
IE7 and IE8: Send "<foo>bar</foo>" and the browser will see "bar</FOO>"
Send "<FOO>bar</FOO>" and the browser will see "bar</FOO>"
IE9: Send "<FOO>bar</FOO>" and the browser will see "<FOO>bar</FOO>"
However, with the current Chrome and Firefox, send "<FOO>bar</FOO>" and the browser will see "<foo>bar</foo>" (I'm almost willing to say this is a change from 3-5 years ago with earlier versions of each browser and GWT, but I won't swear to it.)
For my application, simplest approach is to send back a space delimited string. You might have success with something other than angle brackets (<, >), but you'd better test it thoroughly. For example, in one circumstance, I found that "*FOO*bar@baz*FOO*" worked--extract the text between *FOO* and split on @
On Thursday, August 30, 2012 5:18:05 PM UTC-4, Bobby wrote:
Hello,
I have issues with GWT fileUpload in Internet Explorer.
in the onSubmitComplete ,event.getResult() is not giving me the XML with values.It is just giving me the XML skeleton without valuse.
It works fine in Chrome,but failing in InternetExplorer.
Does anyone have this kind of issue?
Please help with a work around for IE.
Regards,
Bobby