Hello,

I wonder if you can help.  I'm trying to send back some XML from an 
AbstractAjaxBehavior  like this:

public class MyAjaxBehavior extends AbstractAjaxBehavior {

        @Override
        public void onRequest() {
 
                String reply = ....XML document as String.....
                RequestCycle.get().setRequestTarget(new 
StringRequestTarget(reply));
 
        } 
}

How can I set the response type to "text/xml" ?  The clients get the 
response okay, but the fact that they don't know it's XML is causing 
problems in Firefox and Chrome.

Many thanks,

JHC 

Ambrose Wheatcroft 
Analyst / Programmer 

Email: [EMAIL PROTECTED]

London office • Cottons Centre, Cottons Lane, London SE1 2QG • Telephone: 
+44 (0)20 7367 6500 • Fax: +44 (0)20 7367 6501 

This message is private and confidential. If you have received this message in 
error, please notify us and remove it from your system. 
This message has been scanned for all known viruses. However, recipients are 
advised to apply their own antivirus detection measures to this message and any 
attachments upon receipt. 

JHC Plc is a limited company registered in England and Wales. Registered 
number: 2243258. Registered office:Canterbury House, 85 Newhall Street, 
Birmingham, B3 1LH, England.  

Reply via email to