View Source

h3. @org.icefaces.bean.WindowDisposed

A view-scoped bean annotated with @WindowDisposed is removed from the View map when the browser window associated with that view is closed. With stock JavaServer Faces, view-scoped beans are disposed when the session expires. By using ICEfaces and the @WindowDisposed annotation, view-scoped beans can be disposed in a more timely fashion resulting in more efficient use of resources.

{ with @WindowDisposed}
package org.icefaces.demo;

import javax.faces.bean.ManagedBean;
import javax.faces.bean.ViewScoped;

import org.icefaces.bean.WindowDisposed;

@ManagedBean(name = "myViewScopedBean")
public class MyViewScopedBean implements Serializable {