Note that there are some explanatory texts on larger screens.

plurals
  1. POWhy does ICEfaces send dispose-window request on page unload when using view-scoped bean?
    text
    copied!<p>in our application ICEfaces always sends a dispose-window request just before navigating to another JSF Page. as much as i understand this should not happen when having org.icefaces.lazyWindowScope set to true and there is no window-scoped bean involved in current request. but it happens on each link and makes our UI less responsive. but we don't have any window-scoped bean in our application.</p> <p>is that a bug in icefaces that the dispose request is sent when using view-scoped beans? Is it possible to disable? ViewScope is defined in JSF not in ICEfaces, it should work without this dispose request i guess...</p> <pre><code>@ManagedBean(name="viewScopeBean") @ViewScoped public class ViewScopeBean { public void doSomething(){ // } } </code></pre> <p>And here the example jsf:</p> <pre><code>&lt;ice:form&gt; &lt;ice:commandButton value="doSomething" action="#{viewScopeBean.doSomething}"/&gt; &lt;h:link outcome="index" value="Link to same page"/&gt; &lt;/ice:form&gt; </code></pre> <p>To reproduce do the following using the code above:</p> <ol> <li>open firebug's net tab and activate persist option</li> <li>click doSomething-Button</li> <li>click "link to same page"</li> <li>=> dispose-window will be send before navigation</li> </ol> <p>Dispose Request Parameters:</p> <ul> <li>ice.submit.type=ice.dispose.window</li> <li>ice.window=4guthcbue</li> <li>javax.faces.ViewState=-8138151632882151449%3A-6709064564386098402</li> </ul> <p>Environment:</p> <ul> <li>ICEfaces-EE 2.0.0.GA</li> <li>ICEpush-EE 2.0.0.GA</li> <li>Mojarra 2.1.1</li> <li>JRockit 1.6.0_22</li> <li>WebLogic Server 10.3.4.0</li> </ul> <p>ICEfaces Configuration:</p> <ul> <li>org.icefaces.render.auto: true [default]</li> <li>org.icefaces.autoid: true [default]</li> <li>org.icefaces.aria.enabled: true [default]</li> <li>org.icefaces.blockUIOnSubmit: false [default]</li> <li>org.icefaces.compressDOM: false [default]</li> <li>org.icefaces.compressResources: true [default]</li> <li>org.icefaces.connectionLostRedirectURI: /pages/main.jsf</li> <li>org.icefaces.deltaSubmit: false [default]</li> <li>org.icefaces.lazyPush: true [default]</li> <li>org.icefaces.sessionExpiredRedirectURI: /pages/main.jsf</li> <li>org.icefaces.standardFormSerialization: false [default]</li> <li>org.icefaces.strictSessionTimeout: false [default]</li> <li>org.icefaces.windowScopeExpiration = 1000 [default]</li> <li>org.icefaces.mandatoryResourceConfiguration: null [default]</li> <li>org.icefaces.uniqueResourceURLs: true [default]</li> <li>org.icefaces.lazyWindowScope: true [default]</li> <li>org.icefaces.disableDefaultErrorPopups: false [default]</li> </ul>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload