You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by Fernando Franzini <fe...@gmail.com> on 2011/09/01 15:39:04 UTC
Re: [jira] [Created] (MYFACES-3174) IE9 css loading leads to
java.lang.IllegalArgumentException: ContentTypeList does not contain a
supported content type: text/css
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.
Re: [jira] [Created] (MYFACES-3174) IE9 css loading leads to
java.lang.IllegalArgumentException: ContentTypeList does not contain a
supported content type: text/css
Posted by Fernando Franzini <fe...@gmail.com>.
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 <fe...@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.
Re: [jira] [Created] (MYFACES-3174) IE9 css loading leads to
java.lang.IllegalArgumentException: ContentTypeList does not contain a
supported content type: text/css
Posted by Leonardo Uribe <lu...@gmail.com>.
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 <fe...@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.
>
>