Details
Description
Tobias Bräuer reported the following issue:
Hello,
There is a problem with mobile internet explorer version 6.12 and
myfaces. The browser sends a "Accept:
application/vnd.wap.mms-message;/". We solved that problem by adding
the following code in the class
org.apache.myfaces.shared_impl.renderkit.html.HtmlRendererUtils at
line 1619. If used with tomahawk, the same fix is needed there.
I have no idea how your community process works, but feel free to add
the code to your repository.
if (contentTypeListString == null) {
FacesContext context = FacesContext.getCurrentInstance();
if (context != null) {
contentTypeListString = (String) context.getExternalContext()
.getRequestHeaderMap().get("Accept");
// There is a windows mobile IE client (6.12) sending
// "application/vnd.wap.mms-message;/"
// This is a workaround ...
if (contentTypeListString
.startsWith("application/vnd.wap.mms-message;/"))
}
if (contentTypeListString == null)
{ if (log.isDebugEnabled()) log .debug("No content type list given, creating HtmlResponseWriterImpl with default content type."); contentTypeListString = HTML_CONTENT_TYPE; }}
Cheers,
Tobias Bräuer