Uploaded image for project: 'MyFaces Core'
  1. MyFaces Core
  2. MYFACES-2154

mobile internet explorer version 6.12 issue

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 1.2.8
    • General
    • None
    • mobile internet explorer version 6.12
      MyFaces v???

    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;/"))

      { contentTypeListString = "*/*"; }

      }

      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

      Attachments

        Activity

          People

            lu4242 Leonardo Uribe
            manolito Manfred Geiler
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: