Java Code Examples for javax.faces.context.FacesContext.setCurrentInstance()

The following are Jave code examples for showing how to use setCurrentInstance() of the javax.faces.context.FacesContext class. You can vote up the examples you like. Your votes will be used in our system to get more good examples.
+ Save this method
Example 1
Project: oscm   File: FacesContextStub.java   View Source Code Vote up 4 votes
public FacesContextStub(Locale locale) {
    usedLocale = locale;
    FacesContext.setCurrentInstance(this);
}
 
Example 2
Project: oscm   File: FacesContextStub.java   View Source Code Vote up 4 votes
public void setCurrentInstance(FacesContextStub instance) {
    FacesContext.setCurrentInstance(instance);
}
 
Example 3
Project: myfaces-trinidad   File: PseudoFacesContext.java   View Source Code Vote up 4 votes
public void setAsCurrentInstance()
{
  FacesContext.setCurrentInstance(this);
}
 
Example 4
Project: myfaces-trinidad   File: PseudoFacesContext.java   View Source Code Vote up 4 votes
@Override
public void release()
{
  FacesContext.setCurrentInstance(null);
}
 
Example 5
Project: myfaces-trinidad   File: MFacesContext.java   View Source Code Vote up 4 votes
public static void clearContext()
{
  FacesContext.setCurrentInstance(null);
}
 
Example 6
Project: myfaces-trinidad   File: FacesTestCase.java   View Source Code Vote up 4 votes
public static void setCurrentInstance(
  FacesContext context)
{
  FacesContext.setCurrentInstance(context);
}
 
Example 7
Project: parabuild-ci   File: FacesExtensionFilter.java   View Source Code Vote up 4 votes
protected static void setFacesContextAsCurrentInstance(FacesContext facesContext)
{
    FacesContext.setCurrentInstance(facesContext);
}