AnsweredAssumed Answered

FacesContext null

Question asked by wass on Aug 29, 2011
Latest reply on Oct 19, 2011 by wass
Hello,

I'm trying to the FacesContext.getCurrentInstance but i'm getting null…
In fact, want one instace of ServiceRegistry, so i'm following these steps:


FacesContext context = FacesContext.getCurrentInstance();
ServiceRegistry serviceRegistry = Repository.getServiceRegistry(context);
             

what should i do?

thanks.

Outcomes