简体   繁体   English

在兼容性视图中,部分更新不适用于primefaces 4.0和IE9

[英]Partial update doesn't work with primefaces 4.0 and IE9 in compatibility view

Simple login page doesn't show growl message in IE9 in compatibility view. 简单登录页面不会在IE9的兼容性视图中显示咆哮消息。

The code is: 代码是:

<p:commandButton id="login_button" value="Login" 
   actionListener="#{logonBean.login}" update="@form"/>

The ajax request is broken and looks like: ajax请求已损坏,看起来像:

javax.faces.partial.ajax=true&javax.faces.source=login_Form%3Alogin_button&javax.faces.partial.execute=%40all&javax.faces.partial.render=undefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefinedundefined&login_Form

If I specify partialSubmit="false" nothing is changed. 如果我指定partialSubmit="false"什么都不会改变。

For Primefaces showcase everything works perfect. 对于Primefaces展示,一切正常。

In normal mode all is ok as well as for Chrome and FireFox browsers. 在正常模式下,对于Chrome和FireFox浏览器,一切正常。

By default IE9 in compatibility view works as IE7. 默认情况下,兼容性视图中的IE9用作IE7。

And IE7 is no more supported by Primefaces (since version 3.5) . Primefaces (从版本3.5开始)不再支持IE7。

Compatibility version can be changed via Developer Tools -> Browser Mode to IE8 as the minimal version of browser supported by Primefaces. 可以通过开发人员工具->浏览器模式将兼容性版本更改为IE8,作为Primefaces支持的浏览器的最低版本。

I couldn't figure out how to change it by default to IE8 (most likely by fixing registry). 我不知道如何将其默认更改为IE8(最有可能通过修复注册表)。 Also native IE8 works a little bit different from the one in compatibility view (for instance, the attribute target="_blank" in native mode opens a new window, but in compatibility view it opens a new tab). 本机IE8的工作方式也与兼容性视图中的工作方式略有不同(例如,本机模式下的属性target="_blank"将打开一个新窗口,但在兼容性视图中它将打开一个新选项卡)。

So for testing purposes the way is to install a Virtual PC with Windows XP Mode and test application for compatibility issues with the native IE8 browser. 因此,出于测试目的,方法是使用Windows XP Mode安装虚拟PC并测试应用程序与本机IE8浏览器的兼容性问题。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM