Monday, October 28, 2013

Re: Thoughts on GWT 3.0 re: Java 8 and IE 8/9

We've found experimentally that the meta tag has no effect on IE8 when in intranet mode. We've further found that it does seem to respect the http header, which could be set in a filter like this:

public class LatestIEFilter implements Filter {
  @Override
  public void doFilter(ServletRequest req, ServletResponse resp, FilterChain chain) throws IOException, ServletException {
    ((HttpServletResponse)resp).setHeader("X-UA-Compatible", "IE=latest");
    chain.doFilter(req, resp);
  }
  //...
}

<rant>
Since IE8-pretending-to-be-IE7 behaves like neither IE8 nor IE7 (at least not completely), I generally maintain that code trying to fit either one shouldn't be expected to work. IIRC, IE8-pretending-to-be-IE7 can't be distinguished from IE7, so the only way to make a library/application work in a so-called compatibility mode is to custom tailor it for that mode, and ignore the 'real' browser modes.
</rant>

On Monday, October 28, 2013 12:00:57 PM UTC-5, Thomas Broyer wrote:


On Monday, October 28, 2013 4:22:29 PM UTC+1, Chak Lai wrote:
If IE7support is removed from GWT, will GWT run correctly on IE in Intranet? (IE will default to IE7 Browser mode for Intranet Website)

Include the correct <meta http-equiv="X-UA-Compat"> in the HTML?


Otherwise, well, just don't upgrade to a newer GWT: if you live in the past, don't use cutting-edge tools. (this is not a criticism)

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at http://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/groups/opt_out.

No comments:

Post a Comment