posted 16 years ago
Even if you are going to JSF for this... It is going to use JavaScript because whatever you do at the client side have to be done with some sort of scripting. (Please correct if there is some other way to do it.)
JSF generates a lot of JavaScript code which can be seen by viewing the source of the page generated at the client side. I will suggest you to change your idea and to opt for some other way which will invalidate the session and tell the user to close the window. Moreover it is not considered as a good practice to play around the users browser without his permission. Try to give user a better and easy to handle website. Don't tie them into your rules but use their will to make suggestions.