my dog learned polymorphism
The moose likes JSF and the fly likes Timeout validation dialog box. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Customer Requirements for Developers this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Timeout validation dialog box." Watch "Timeout validation dialog box." New topic

Timeout validation dialog box.

Robert James Liguori
Ranch Hand

Joined: Nov 27, 2007
Posts: 540

After a session has expired, I need to open up a dialog box that gives the user two minutes to reset the timeout counter or the session will expire.

Any suggestions or tutorials that I can use to code this up? Can this functionality be done with JSF components or is Javascript needed?

My Blog (I frequently post on Java, JSF and NetBeans)
Bauke Scholtz
Ranch Hand

Joined: Oct 08, 2006
Posts: 2458
Make use of Javascript's setTimeout() function in combination with HttpSession#getMaxInactiveInterval().
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
subject: Timeout validation dialog box.
It's not a secret anymore!