context = new FacesViewContextImpl();
event.addContext(context);
}
public void addContexts(@Observes final AfterDeploymentValidation event) {
CustomContextProducer producer = Beans.getReference(CustomContextProducer.class);
producer.addRegisteredContext(context);
//Ativa o ViewContext
if (!context.isActive()){
contextActivatedHere = context.activate();
}