Examples of JSFUnitFacesContext


Examples of org.jboss.jsfunit.context.JSFUnitFacesContext

    */
   public static FacesContext getCurrentInstance()
   {
      HttpSession session = WebConversationFactory.getSessionFromThreadLocal();
      if (session == null) return null;
      JSFUnitFacesContext facesContext = (JSFUnitFacesContext)session.getAttribute(JSFUnitFacesContext.SESSION_KEY);
      if (facesContext == null) return null;
      facesContext.setInstanceToJSFUnitThread();
      return facesContext;
   }
View Full Code Here

Examples of org.jboss.jsfunit.context.JSFUnitFacesContext

   private void pageCreated()
   {
      // Note that the FacesContextBridge not only provides us with the FacesContext,
      // it also associates the FacesContext with the JSFUnit thread so that
      // FacesContext.getCurrentInstance() will work.
      JSFUnitFacesContext facesContext = (JSFUnitFacesContext)FacesContextBridge.getCurrentInstance();
     
      // if no FacesContext exists, we can't get the Client IDs
      if (facesContext == null) return;
     
      // Peformance optimization.  If the FacesContext instance didn't change,
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.