myfaces-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cagatay Civici" <cagatay.civ...@gmail.com>
Subject Re: how to execute one-time start-up code?
Date Fri, 18 May 2007 14:47:03 GMT
>
> Calling FacesContext.getCurrentInstance() returns null from my own
> ServletContextListener.contextInitialized(), even though I've written the
> web.xml like so


There won't be any facescontext during startup, it's associated with a
particular request so since there's no request during startup it'll be null.

Eric what are you trying to do in this listener, I'm sure there's another
way to achieve this without touching FacesContext.

Cagatay

Mime
View raw message