addViewListener deprecated
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
Search
Recent Topics
Home Page
|
www.icefaces.org
Register
Login
addViewListener deprecated
|
Share
Forum Index
->
General Help
Author
Message
03/07/2008 07:38:59
Subject:
addViewListener deprecated
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
Hi,
I would like to know what can I use to replace this deprecated method.
PersistentFacesState.
addViewListener(ViewListener listener)
I would like to call the Listener.dispose() method in order to execute function when navigator is closing.
Thanks for your help.
regards
Bal.
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2
03/07/2008 08:10:49
Subject:
Re:addViewListener deprecated
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
The
Interface DisposableBean
can't solve my problem because I need to intercept onunload event...
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2
03/07/2008 14:26:21
Subject:
addViewListener deprecated
mircea.toma
Joined: 10/02/2005 00:00:00
Messages: 304
Offline
What exactly are you trying to achieve?!
03/07/2008 15:58:40
Subject:
Re:addViewListener deprecated
Baleyba
Joined: 16/11/2006 00:00:00
Messages: 110
Offline
Hi,
Sorry, I wasn't very clear.. in me previous posts...
I would like intercept the close of navigator for closing session properly and removing it from sessions pool.
It perfectly works with <body onbeforeunload=""> tag, but ICEFaces is already using this tag apparently. And it throws an exception when I'm using it.
So I'm looking for solutions.
First, I have seen PersistentFacesState.
addViewListener
(ViewListener listener) but unfortunately it is deprecated.
After that, I tried
Interface DisposableBean
but it isn't called when navigator is closing.
third, I tried <body onunload=""> tag but it is called on every change of view.
So I don't find any solution.
Thanks for your help
regards,
Bal.
JBoss 4.2.3 | Java 1.6.0_16 | IceFaces 1.8.2
Forum Index
->
General Help
Go to:
Select a forum
General
-------------
Using the Forums
ICEfaces Forums
-------------
News & Announcements
General Help
Components
Tools
Portals & Portlets
Woodstock to ICEfaces Migration
JBoss Seam Integration
Development Build Feedback
Contributor's Corner
ICEmobile Forums
-------------
ICEmobile General
ICEpdf Forums
-------------
ICEpdf General
ICEpush Forums
-------------
ICEpush General
Projects
-------------
Async HTTP Server
WebMC
Powered by
JForum 2.1.7ice
©
JForum Team