This is more a limitation or the nature of the http and other protocols than a defect in T5.
The polling scheme is only possibility that comes to my mind. If the user has not been heard of for a certain amount of time, he/she will be regarded as absent and removed from the room. Of course, what ever the user does to the client to move to another page stops the javascript that is sending the "still alive messages". You're going to have to write some custom js to do this, there isn't needed functionality in T5 that would do this AFAIK. - Ville BarryDev wrote: > > Hi all, > > I've completed the hi/lo and address tutorial and I'm not trying to write > a simple chatroom to learn some more about tapestry. > > My basic chatroom currently has a login page which forwards to a chatroom > which lists the usernames of all logged in users. I'm currently using a > singleton to store all the users who are logged in and fetch them when > rendering the chatroom. > > What I would like to do next is catch a user leaving the chatroom no > matter what they're do (closing broswer, typing in new url, clicking a > link in the app, hitting back button in browser) so I can remove them from > the list of logged in users. > > What's the best mechanism to do this with Tap5, is there a page detached > event I can register to that will get thrown in all cases? Is it better > to have a bit of javascript on the page which polls another page doing an > async I'm still alive? (I'll probably need to do something like this for > polling for new messages from other users) > > Or is there a more elegant solution hidden within T5? I've searched here > and the docs but haven't been able to find anything. > > Regards > Barry > -- View this message in context: http://www.nabble.com/T5---Catching-user-leaving-a-page-tp20093965p20104676.html Sent from the Tapestry - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]