myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Hudson (JIRA)" <...@myfaces.apache.org>
Subject [jira] [Commented] (TOBAGO-1478) Accesskeys doesn't work with Tobago 1.0 and IE11
Date Wed, 12 Aug 2015 10:08:45 GMT

    [ https://issues.apache.org/jira/browse/TOBAGO-1478?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14693250#comment-14693250
] 

Hudson commented on TOBAGO-1478:
--------------------------------

FAILURE: Integrated in tobago-1.0.x #908 (See [https://builds.apache.org/job/tobago-1.0.x/908/])
TOBAGO-1478: Accesskeys doesn't work with Tobago 1.0 and IE11 (lofwyr: http://svn.apache.org/viewvc/?view=rev&rev=1693241)
* /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/XUaCompatibleIe11Filter.java
TOBAGO-1478: Accesskeys doesn't work with Tobago 1.0 and IE11 (lofwyr: http://svn.apache.org/viewvc/?view=rev&rev=1693240)
* /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/java/org/apache/myfaces/tobago/example/demo/XUaCompatibleIe11Filter.java
* /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/WEB-INF/web.xml
* /myfaces/tobago/branches/tobago-1.0.x/example/demo/src/main/webapp/style/style.css


> Accesskeys doesn't work with Tobago 1.0 and IE11
> ------------------------------------------------
>
>                 Key: TOBAGO-1478
>                 URL: https://issues.apache.org/jira/browse/TOBAGO-1478
>             Project: MyFaces Tobago
>          Issue Type: Bug
>          Components: Themes
>    Affects Versions: 1.0.41
>            Reporter: Udo Schnurpfeil
>            Priority: Minor
>
> Workaround: Set IE11 into a compatibility mode with a header. You can do that with defining
a filter for all HTML pages like this example:
> (This code is also available in the Subversion repository of Tobago 1.0.x)
> {code}
> import javax.servlet.Filter;
> import javax.servlet.FilterChain;
> import javax.servlet.FilterConfig;
> import javax.servlet.ServletException;
> import javax.servlet.ServletRequest;
> import javax.servlet.ServletResponse;
> import javax.servlet.http.HttpServletRequest;
> import javax.servlet.http.HttpServletResponse;
> import java.io.IOException;
> public class XUaCompatibleIe11Filter implements Filter {
>   public void init(FilterConfig filterConfig) throws ServletException {
>   }
>   public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse,
FilterChain filterChain)
>       throws IOException, ServletException {
>     final HttpServletRequest httpServletRequest = (HttpServletRequest) servletRequest;
>     final String userAgent = httpServletRequest.getHeader("User-Agent");
>     if (userAgent != null && userAgent.contains("Trident") && userAgent.contains("rv:11"))
{ // is IE 11
>       final HttpServletResponse httpServletResponse = (HttpServletResponse) servletResponse;
>       httpServletResponse.setHeader("X-UA-Compatible", "IE=10");
>       // known problems
>       //                 box of input    menu arrow key     access-key
>       // EmulateIE11     +               -                  -
>       // EmulateIE10     +               -                  +
>       // 10              +               -                  +
>       // EmulateIE9      -               +                  +
>       // 9               +               -                  +
>       // EmulateIE8      -               +                  +
>       // 8               -               +                  +
>       // EmulateIE7      -               +                  +
>       // 7               -               +                  +
>       // 5               -               +                  +
>     }
>     filterChain.doFilter(servletRequest, servletResponse);
>   }
>   public void destroy() {
>   }
> }
> {code}
> Additionally you need to add this Style in a style.css file:
> {code}
> * {
>   box-sizing: border-box;
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message