Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
Francois Armand schrieb: Kristian Marinkovic a écrit : havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly I think

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Francois Armand
Kristian Marinkovic a écrit : havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly I think that the problem here is if

Re: T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Kristian Marinkovic
havent tried myself, but it should work this way... you could create a Dispatcher and inject the Request service. by analyzing the http headers you can determine the client and set the content-type of the response accordingly g, kris Christian Gorbach <[EMAIL PROTECTED]> 07.03.2008

T5: Response Content Type, Web Standards and IE

2008-03-07 Thread Christian Gorbach
l+xml") is only respected by Mozilla Browsers. IE doesnt know how to handle responses of this content type. Same behavior for "text/xml". Content negotation also isn't an option, because the annotation is too static and applies to all user agents. For IE et al. my markup sho

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

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

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

Re: IUploadFile doesnt check content type properly

2007-09-30 Thread Andreas Andreou
You might like to report this to the commons-upload guys We basically wrap their org.apache.commons.fileupload.FileItem class On the other hand, I believe this to be the correct behavior. As mentioned in the docs, the MIME type returned is the one specified when the file was uploaded, i.e. what t

IUploadFile doesnt check content type properly

2007-09-30 Thread Gusti Benawi
Hello, The method getContentType() from IUploadFile doesnt check the mime type of the file, like it describes String getContentType() Returns the MIME type specified when the file was uploaded. Instead, it only checks the extension of the file. So, the methode will for exa

Re: T5 preferred way to make sure response content-type is utf-8?

2007-05-25 Thread Nick Westgate
It also works with 5.0.4, but to use 5.0.5-SNAPSHOT you might need: true tapestry-snapshots http://people.apache.org/~hlship/tapestry-snapshot-repository/ Cheers, Nick. Davor Hrg wrote: I tried it but had trouble with getting 5.0.5-SNAPSHOT in my pom... what is co

Re: T5 preferred way to make sure response content-type is utf-8?

2007-05-24 Thread Davor Hrg
ield and an expansion showing the value from > the text field. If i enter some random characters not included in > iso-8895-1 then tapestry just displays "?" instead. > > Traditionally I have solved problems like this by setting the response > Content-Type to utf-8. > >

Re: T5 preferred way to make sure response content-type is utf-8?

2007-05-23 Thread Nick Westgate
by setting the response Content-Type to utf-8. To change the default behavior of all pages I replaced the following line in org.apache.tapestry.internal.services.PageResponseRendererImpl PrintWriter pw = response.getPrintWriter("text/html); with PrintWriter pw = response.getPrintWriter(&qu

T5 preferred way to make sure response content-type is utf-8?

2007-05-23 Thread Chris Poulsen
t; instead. Traditionally I have solved problems like this by setting the response Content-Type to utf-8. To change the default behavior of all pages I replaced the following line in org.apache.tapestry.internal.services.PageResponseRendererImpl PrintWriter pw = response.getPrintWriter("te

Re: Content Type

2006-05-16 Thread yesidredondo
Should i put this code on the PageBeginRender method? Hermann Yesid Redondo Eslava Ingeniería de Sistemas IT-GROUP -- Original Message --- From: Andreas Bulling <[EMAIL PROTECTED]> To: Tapestry users Sent: Tue, 16 May 2006 17:54:05 +0200 Subject: Re: Content Type > O

Re: Content Type

2006-05-16 Thread Andreas Bulling
On 16. Mai 2006 - 10:21:13, yesidredondo wrote: | Can anyone tell me how to put the content type of a page in tapestry, if i | want a page to be of xml or xls format? HttpServletResponse response = getRequestCycle().getRequestContext().getResponse(); try

Content Type

2006-05-16 Thread yesidredondo
Can anyone tell me how to put the content type of a page in tapestry, if i want a page to be of xml or xls format? Hermann Yesid Redondo Eslava Ingeniería de Sistemas IT-GROUP - To unsubscribe, e-mail: [EMAIL PROTECTED] For