0

Possible Duplicate:
FacesContext == null

I have an abstract class AbsClass in a API and Bean ViewBean. AbsClass abstract class is implemented with a name AbsClassImpl and abstract methods are declared. For arthiecturel aim, AbsClass is used in ViewBeans. But how I can reach ViewBean from AbsClassImpl. it is required because if some changed occured in API say raise an event, it has to notify ViewBean and then user on interface via AbsClassImpl->eventHandler() method.

FacesContext.getCurrentInstance() returns null since I think AbsClassImpl class is not in Context or somewhere else.

Could you give me an advice how to handle this situation? I am using JSF 2.0

4

0 回答 0