Is it possible to call Bean from Jquery? My requirement is like below,
I have a JSF 1.2 based Servlet.
Am invalidating a user's session if he is idle for some time. Am showing Jquery dialog box 1 minute before invalidating the session. A user has 2 options in the dialog box. "Yes I want to continue" will extend the session. "No I want to logout" will logout the user.
When user clicks on "No I want to logout", I want to call bean method where I update the Database & invalidate the session.
Below is the code,
'No, Log out': function(){
$j.idleTimeout.options.onTimeout.call($j.post('//This is where am stuck',function()
I want to call bean in $j.post so that I can do some clean up activities in my bean.
How this can be done?
Regards,