Hello,

Yes, sorry and thanks - missed the StringRequestTarget(String contentType, 
String charSet, String content) constrcutor.

Thanks again.

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 




From:
"Igor Vaynberg" <[EMAIL PROTECTED]>
To:
users@wicket.apache.org
Date:
28/10/2008 16:46
Subject:
Re: Write XML response



is it not just a matter of setting the right header?

-igor

On Tue, Oct 28, 2008 at 9:19 AM,  <[EMAIL PROTECTED]> wrote:
> 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.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]





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