Jsf 2 为什么在使用视图作用域bean时,ICEfaces在页面卸载时发送dispose窗口请求?
在我们的应用程序中,ICEfaces总是在导航到另一个JSF页面之前发送dispose窗口请求。据我所知,当org.icefaces.lazyWindowsScope设置为true并且当前请求中不涉及窗口范围的bean时,不应该发生这种情况。但它发生在每个链接上,并使我们的UI响应性较差。但是我们的应用程序中没有任何窗口范围的bean 使用视图范围bean时发送dispose请求的icefaces中是否存在缺陷?可以禁用吗?ViewScope是在JSF中定义的,而不是在ICEfaces中定义的,我想它应该可以在没有这个dispose请求的情况下工作Jsf 2 为什么在使用视图作用域bean时,ICEfaces在页面卸载时发送dispose窗口请求?,jsf-2,icefaces,Jsf 2,Icefaces,在我们的应用程序中,ICEfaces总是在导航到另一个JSF页面之前发送dispose窗口请求。据我所知,当org.icefaces.lazyWindowsScope设置为true并且当前请求中不涉及窗口范围的bean时,不应该发生这种情况。但它发生在每个链接上,并使我们的UI响应性较差。但是我们的应用程序中没有任何窗口范围的bean 使用视图范围bean时发送dispose请求的icefaces中是否存在缺陷?可以禁用吗?ViewScope是在JSF中定义的,而不是在ICEfaces中定义的,
@ManagedBean(name="viewScopeBean")
@ViewScoped
public class ViewScopeBean {
public void doSomething(){
//
}
}
下面是jsf示例:
<ice:form>
<ice:commandButton value="doSomething" action="#{viewScopeBean.doSomething}"/>
<h:link outcome="index" value="Link to same page"/>
</ice:form>
要复制,请使用上述代码执行以下操作:
- ice.submit.type=ice.dispose.window
- ice.window=4guthcbue
- javax.faces.ViewState=-8138151632882151449%3A-6709064564386098402
- 冰面EE 2.0.0.GA
- ICEpush EE 2.0.0.GA
- 莫哈拉2.1.1
- JRockit 1.6.0_22
- WebLogic服务器10.3.4.0
- org.icefaces.render.auto:true[默认值]
- org.icefaces.autoid:true[默认值]
- org.icefaces.aria.enabled:true[默认值]
- org.icefaces.blockUIOnSubmit:false[默认值]
- org.icefaces.compressDOM:false[默认值]
- org.icefaces.compressResources:true[默认值]
- org.icefaces.connectionLostRedirectURI:/pages/main.jsf
- org.icefaces.deltaSubmit:false[默认值]
- org.icefaces.lazyPush:true[默认值]
- org.icefaces.sessionExpiredDirectUri:/pages/main.jsf
- org.icefaces.standardFormSerialization:false[默认值]
- org.icefaces.strictSessionTimeout:false[默认值]
- org.icefaces.windowScopeExpiration=1000[默认值]
- org.icefaces.mandatoryResourceConfiguration:null[默认值]
- org.icefaces.uniqueResourceURLs:true[默认值]
- org.icefaces.lazyWindowsScope:true[默认值]
- org.icefaces.disableDefaultErrorPopups:false[默认值]
window.onUnload=null代码>。这在我们的应用程序中有效。i mentwindow.onbeforeunload