0

How can I do to reload the JSF page after the session expire? I have a filter, when the session expires, it executes this code:

 res.sendRedirect("/index.xhtml");

But when I use a component when ajax, and the session is expired, nothing happens. So, think about taking a reload always after this line, but do not know how to do.

My idea is to put a line of reload when the session expires. Anyone know if it is possible to do this, or other better idea?

Wilson Ribeiro
  • 353
  • 4
  • 19

1 Answers1

0

See BalusC's answer here: https://stackoverflow.com/a/3642969/1453701 Especially the following section: Handling ViewExpiredException

Community
  • 1
  • 1
Tushee
  • 251
  • 2
  • 8