Package javax.faces.context

Examples of javax.faces.context.FacesContext.release()


    catch (IOException e) {
      throw e;
    }
    finally {
      if (context != null)
        context.release();
    }
  }

  private void printBeanMap(PrintWriter out, Map<String, JsfDeveloperAid.Bean> map)
  {
View Full Code Here


        //make sure that the facesContext gets released.  This is important in an OSGi environment
        FacesContext fc = null;
        fc = FacesContext.getCurrentInstance();       
        if(fc != null)
        {
            fc.release();
        }       
    }

    /**
     * Configures this JSF application. It's required that every
View Full Code Here

        facesContext.setViewRoot(view);
      }

      lifecycle.render(facesContext);
    } finally {
      facesContext.release();
    }
  }

  public abstract String invokeApplication(FacesContext facesContext);
View Full Code Here

        _LOG.severe(e);
      throw e;
    }
    finally
    {
      context.release();
    }
  }

  /**
   * Override of HttpServlet.doGet()
View Full Code Here

            }
        }
        finally
        {
            // Release the FacesContext instance for this request
            context.release();
        }
        if (log.isTraceEnabled())
        {
            log.trace("End FacesPortlet.process()");
        }
View Full Code Here

            }
            RenderKitUtils.loadSunJsfJs(initContext.getExternalContext());
           
        } finally {
            Verifier.setCurrentInstance(null);
            initContext.release();
            LOGGER.log(Level.FINE,
                       "jsf.config.listener.version.complete");
            if (timer != null) {
                timer.stopTiming();
                timer.logResult("Initialization of context " +
View Full Code Here

            ApplicationAssociate
                  .clearInstance(initContext.getExternalContext());
            ApplicationAssociate.setCurrentInstance(null);
            // Release the initialization mark on this web application
            ConfigManager.getInstance().destory(context);
            initContext.release();
            ReflectionUtils.clearCache(Thread.currentThread().getContextClassLoader());
            WebConfiguration.clear(context);
        }

    }
View Full Code Here

            ApplicationAssociate
                  .clearInstance(initContext.getExternalContext());
            ApplicationAssociate.setCurrentInstance(null);
            // Release the initialization mark on this web application
            ConfigManager.getInstance().destory(sc);
            initContext.release();
            ReflectionUtils.clearCache(Thread.currentThread().getContextClassLoader());
            WebConfiguration.clear(sc);
        }

        // bring the application back up, avoid re-registration of certain JSP
View Full Code Here

            }
            RenderKitUtils.loadSunJsfJs(initContext.getExternalContext());
        } catch (Exception e) {
            e.printStackTrace();
        } finally {
            initContext.release();
        }

        if (LOGGER.isLoggable(Level.INFO)) {
            LOGGER.log(Level.INFO,
                       "Reload complete.",
View Full Code Here

                }
            }
        } finally
        {
            // Release the FacesContext instance for this request
            context.release();
        }

        if (log.isTraceEnabled())
        {
            log.trace("End FacesPortlet.process()");
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.