myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Fernando Franzini <fernandofranz...@gmail.com>
Subject Re: [jira] [Created] (MYFACES-3174) IE9 css loading leads to java.lang.IllegalArgumentException: ContentTypeList does not contain a supported content type: text/css
Date Thu, 01 Sep 2011 18:46:13 GMT

Could you show me an example please? I am using JSF 1.2.

Leonardo Uribe wrote:
> 
> Hi
> 
> You can create a wrapper RenderKit class (extends
> javax.faces.render.RenderKitWrapper), and the entry on faces-config.xml,
> and
> override:
> 
>     public ResponseWriter createResponseWriter(Writer writer, String
> contentTypeListString, String characterEncoding)
> 
> passing as second parameter */*. You can also do option 2 and provide a
> custom ResponseWriter to handle text/css.
> 
> JSF 2.0 allow to provide wrappers for renderkits, so with this hack you
> can
> wrap HTML_BASIC or other renderkits.
> 
> regards,
> 
> Leonardo Uribe
> 
> 2011/9/1 Fernando Franzini <fernandofranzini@gmail.com>
> 
>>
>> Hi Folks
>>
>> I am facing this problem and would like to use the first option described
>> by
>> Leonardo....
>>
>> 1. pass as second parameter for
>> RenderKit.createResponseWriter(Writer writer, String
>> contentTypeListString,
>> String characterEncoding)
>> */*, to ignore Accept header.
>>
>> Anyone have any example or link that show me how to do this?
>> Best Regards.
>> --
>> View this message in context:
>> http://old.nabble.com/-jira---Created--%28MYFACES-3174%29-IE9-css-loading-leads-to-java.lang.IllegalArgumentException%3A-ContentTypeList-does-not-contain-a-supported-content-type%3A-text-css-tp31842781p32379656.html
>> Sent from the My Faces - Dev mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: http://old.nabble.com/-jira---Created--%28MYFACES-3174%29-IE9-css-loading-leads-to-java.lang.IllegalArgumentException%3A-ContentTypeList-does-not-contain-a-supported-content-type%3A-text-css-tp31842781p32381729.html
Sent from the My Faces - Dev mailing list archive at Nabble.com.


Mime
View raw message