[ http://issues.apache.org/jira/browse/MYFACES-376?page=comments#action_12319856 ]
Martin Marinschek commented on MYFACES-376: ------------------------------------------- fixed anew (see clone MYFACES-441) > HTML Renderkit doesn't choose correct ContentType > ------------------------------------------------- > > Key: MYFACES-376 > URL: http://issues.apache.org/jira/browse/MYFACES-376 > Project: MyFaces > Type: Bug > Components: JSF 1.1 > Versions: 1.0.9 beta > Environment: Tomcat, FireFox/Mozilla Browser > Reporter: Jacob Hookom > Assignee: Martin Marinschek > Priority: Critical > Fix For: Nightly Build > > The contract between ViewHandler and RenderKit for creating a ResponseWriter > is that the ViewHandler should suggest a list of supported contentTypes. It > is the RenderKit's job to pick the appropriate one based on it's output-- not > just any of them. > In the case of Firefox, the first item it sends is 'text/xml, ....', the > HtmlRenderKit in MyFaces just says, use the first item returned, so the > response is set to be contentType of 'text/xml'. > This causes issues since the browser gets a response, renders it, but treats > the content with comments <!-- --> as XML-- so that means the css isn't used, > and commented JavaScript isn't seen. > This is a major blocker. -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira