Using FormPanel to get XML data - workaround?

2010-07-08 Thread Robert Hanson
Based on the docs for FormPanel the server has to reply with the content-type of text/html, otherwise there may be issues with some browsers. But if you do that, and send XML content it seems it has browser issues. For example, in FF/DevMode the SubmitCompleteEventHandler returns null for the

Re: Using FormPanel to get XML data - workaround?

2010-07-08 Thread Gal Dolber
I think the best you can do is use FormPanel for multipart posts only(file upload) and make all the other request with ajax. 2010/7/8 Robert Hanson iamroberthan...@gmail.com Based on the docs for FormPanel the server has to reply with the content-type of text/html, otherwise there may be

Re: Using FormPanel to get XML data - workaround?

2010-07-08 Thread Thad
A technique I've used--though it requires two trips to the server--is for the form processing servlet to create a temporary file of the XML and store it in a session attribute. Let the servlet return ok or some such short notice (write the exception if the servlet errors; this gives you something

Re: Using FormPanel to get XML data - workaround?

2010-07-08 Thread Thomas Broyer
On 8 juil, 18:53, Robert Hanson iamroberthan...@gmail.com wrote: Based on the docs for FormPanel the server has to reply with the content-type of text/html, otherwise there may be issues with some browsers.  But if you do that, and send XML content it seems it has browser issues. For

Re: Using FormPanel to get XML data - workaround?

2010-07-08 Thread Robert Hanson
Awesome, thanks everyone for the ideas. Rob On Thu, Jul 8, 2010 at 5:22 PM, Thomas Broyer t.bro...@gmail.com wrote: On 8 juil, 18:53, Robert Hanson iamroberthan...@gmail.com wrote: Based on the docs for FormPanel the server has to reply with the content-type of text/html, otherwise