Return-Path: X-Original-To: apmail-myfaces-dev-archive@www.apache.org Delivered-To: apmail-myfaces-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 622A0185FE for ; Wed, 12 Aug 2015 10:08:46 +0000 (UTC) Received: (qmail 34414 invoked by uid 500); 12 Aug 2015 10:08:46 -0000 Delivered-To: apmail-myfaces-dev-archive@myfaces.apache.org Received: (qmail 34367 invoked by uid 500); 12 Aug 2015 10:08:46 -0000 Mailing-List: contact dev-help@myfaces.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: "MyFaces Development" Delivered-To: mailing list dev@myfaces.apache.org Received: (qmail 34332 invoked by uid 99); 12 Aug 2015 10:08:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 12 Aug 2015 10:08:45 +0000 Date: Wed, 12 Aug 2015 10:08:45 +0000 (UTC) From: "Hudson (JIRA)" To: dev@myfaces.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (TOBAGO-1478) Accesskeys doesn't work with Tobago 1.0 and IE11 MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ 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)