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
hi lars, return an instance of StreamResponse: StreamResponse onActivate(String context) { return new StreamResponse() { // implement interface public String getContentType() { return"application/x-java-jnlp-file"; }