You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org> on 2009/02/23 18:08:02 UTC

[jira] Created: (MYFACES-2154) mobile internet explorer version 6.12 issue

mobile internet explorer version 6.12 issue
-------------------------------------------

                 Key: MYFACES-2154
                 URL: https://issues.apache.org/jira/browse/MYFACES-2154
             Project: MyFaces Core
          Issue Type: Improvement
          Components: General
         Environment: mobile internet explorer version 6.12
MyFaces v???
            Reporter: Manfred Geiler


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


-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-2154) mobile internet explorer version 6.12 issue

Posted by "Manfred Geiler (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Manfred Geiler updated MYFACES-2154:
------------------------------------

    Status: Patch Available  (was: Open)

> mobile internet explorer version 6.12 issue
> -------------------------------------------
>
>                 Key: MYFACES-2154
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2154
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>         Environment: mobile internet explorer version 6.12
> MyFaces v???
>            Reporter: Manfred Geiler
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


[jira] Updated: (MYFACES-2154) mobile internet explorer version 6.12 issue

Posted by "Leonardo Uribe (JIRA)" <de...@myfaces.apache.org>.
     [ https://issues.apache.org/jira/browse/MYFACES-2154?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leonardo Uribe updated MYFACES-2154:
------------------------------------

       Resolution: Fixed
    Fix Version/s: 1.2.8-SNAPSHOT
         Assignee: Leonardo Uribe
           Status: Resolved  (was: Patch Available)

> mobile internet explorer version 6.12 issue
> -------------------------------------------
>
>                 Key: MYFACES-2154
>                 URL: https://issues.apache.org/jira/browse/MYFACES-2154
>             Project: MyFaces Core
>          Issue Type: Improvement
>          Components: General
>         Environment: mobile internet explorer version 6.12
> MyFaces v???
>            Reporter: Manfred Geiler
>            Assignee: Leonardo Uribe
>             Fix For: 1.2.8-SNAPSHOT
>
>
> 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

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.