Logo 
Search:

Java Answers

Ask Question   UnAnswered
Home » Forum » Java       RSS Feeds
  Question Asked By: Caleb Smith   on Sep 11 In Java Category.

  
Question Answered By: Aalia Arain   on Sep 11

you should inject FacesContext in your java code with annotation

@In(required = true)
private FacesContext facesContext;

and your import should be :
import javax.faces.context.FacesContext;
if it is not work you should findout what is your problem and often with create new facesContext solve this problem
FacesContext facesContext = new FacesContext();

Share: 

 
 
Didn't find what you were looking for? Find more on Cannot find FacesContext Or get search suggestion and latest updates.


Tagged: