addViewListener deprecated
[Logo]
ICEsoft.org Forums: ICEfaces, ICEmobile, ICEpdf
[Search] Search   [Recent Topics] Recent Topics   [Groups] Home Page | www.icefaces.org  [Register] Register  [Login] Login 
addViewListener deprecated  XML
Forum Index -> General Help
Author Message
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
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
mircea.toma

Joined: 10/02/2005 00:00:00
Messages: 304
Offline


What exactly are you trying to achieve?!
[Email]
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:   
Powered by JForum 2.1.7ice © JForum Team