Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
On Nov 28, 2007 3:50 PM, Kristian Marinkovic wrote: > hi lars, > > return an instance of StreamResponse: > > StreamResponse onActivate(String context) { > return new StreamResponse() { > // implement interface > public String getContentType() { >

Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
On Nov 28, 2007 7:46 PM, Josh Canfield wrote: > You can use: @Meta("tapestry.response-content-type=text/xml") on your page > class. Thanks, that seems to work for me. > Although XML is not fully supported by tapestry at the moment. You may run > into problems with invalid xml being generated if o

Re: T5: Controlling the content type in a page render request

2007-11-28 Thread Josh Canfield
You can use: @Meta("tapestry.response-content-type=text/xml") on your page class. Although XML is not fully supported by tapestry at the moment. You may run into problems with invalid xml being generated if one of your elements matches an HTML element such as link or img which will render the openi

RE: T5: Controlling the content type in a page render request

2007-11-28 Thread Kristian Marinkovic
-file"; } } } g, kris "Lars Kühne" <[EMAIL PROTECTED]> 28.11.2007 15:33 Bitte antworten an "Tapestry users" An users@tapestry.apache.org Kopie Thema T5: Controlling the content type in a page render request Hi, I'm trying to use a tml templ

T5: Controlling the content type in a page render request

2007-11-28 Thread Lars Kühne
Hi, I'm trying to use a tml template to serve an XML file that has dynamic content (in fact, a Java Web Start JNLP file): http://tapestry.apache.org/schema/tapestry_5_0_0.xsd"; spec="1.5+" ... The content itself is rendered correctly, but I'm having problems setting the correct content type