DisposableBean « IceFaces « JSF Q&A





1. Ajax Push and DisposableBean    icefaces.org

2. DisposableBean.....!    icefaces.org

Hi! I'm using iceFaces 1.8.2. I wanted to implement DisposableBean in my classes. The StandardRequestScope is set to false. In this scenario, the dispose method is called when the veiw, more specifically URL, is changed. In my case, I'm using a main template jspx and the changing view is basically an ui:inclde tag. The problem is that using this mechanism, main ...

3. Implementing DisposableBean!    icefaces.org

Hi! I'm a newbie to ICEfaces and have a question. To release the view specific resources, the DisposableBean interface is implemented in the Backing bean. I'm confused about the dispose() method. Shall I only just override that method like @Override public void dispose() throws Exception { } Or I'll have to write some cleanup code? Will this clean up code be ...

4. Implementing DisposableBean!    icefaces.org

Hi! I'm a newbie to ICEfaces and have a question. To release the view specific resources, the DisposableBean interface is implemented in the Backing bean. I'm confused about the dispose() method. Shall I only just override that method like @Override public void dispose() throws Exception { } Or I'll have to write some cleanup code? Will this clean up code be ...

5. DisposableBean.dispose() limitations    icefaces.org

Hi, I ran into problems Icefaces 1.8.2 with Icefaces extended request scoped beans implementing DisposableBean: when I tried to get an application scoped bean from the faces context, I'd always get a NullPointerException. Turned out that FacesContext.getCurrentInstance() already returned null. I assume dispose() is called asynchronously and the context is already destroyed? I can work around that by getting a reference ...

9. DisposableBean (session) not called immediately when user closes browser    icefaces.org

I noticed that the dispose() method of the DisposableBean interface on a session scoped bean doesn't get called when the user closes the browser, at least not until the session times-out. I would prefer to have it called immediately when the user closes the browser. Is this a possible improvement or is it hard to detect when the user closes the ...