Within which phase does JSF fills managed beans?

Hi,

I have one big problem with my webapp.

Normally, an user logs in and an user object will be stored into SessionScope and loginFlag will be set to "true".

Through the navigation after login, a xhtml-site appears where the user data (in SessionScope) fills the input-fields of the site (with #Session-Scope.object.... in faces-config).

Everything works fine, but when I have to restart my Tomcat sometimes the session-id is the old one, loginflag is true but the user is null.

This causes a Faces-Exception and I want to catch this Exception. But I don't know when I have to do that. Could anybody tell me in which phase I have to catch this exception? Or is there another solution to avoid this exception?

Cu

Alex

[767 byte] By [Troilusa] at [2007-11-27 3:34:31]
# 1
Put the User object in the HttpSession of the ServletContext, not in the SessionMap of the FacesContext.This one might provide useful insights: http://balusc.xs4all.nl/srv/dev-jep-usf.html
BalusCa at 2007-7-12 8:37:39 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...