Package org.apache.myfaces.trinidad.render

Examples of org.apache.myfaces.trinidad.render.InternalView


  @Override
  public UIViewRoot createView(FacesContext context, String viewId)
  {
    _initIfNeeded(context);

    InternalView internal = _getInternalView(context, viewId);
    if (internal != null)
    {
      UIViewRoot root = internal.createView(context, viewId);
      if (root != null)
        return root;
      // Otherwise, fall through to default processing
    }
    else if (_checkTimestamp(context))
View Full Code Here


      try
      {
        if (service != null)
          service.encodeBegin(context);

        InternalView internal = _getInternalView(context,
                                                 viewToRender.getViewId());
        if (internal != null)
        {
          internal.renderView(context, viewToRender);
        }
        else
        {
          _delegate.renderView(context, viewToRender);
        }
View Full Code Here

        RequestContextImpl.LAUNCH_VIEW);
      TrinidadPhaseListener.markPostback(context);
      return launchView;
    }

    InternalView internal = _getInternalView(context, viewId);
    if (internal != null)
    {
      return internal.restoreView(context, viewId);
    }

    boolean uptodate = true;

    if (_checkTimestamp(context))
View Full Code Here

  @Override
  public void writeState(
    FacesContext context) throws IOException
  {
    String viewId = context.getViewRoot().getViewId();
    InternalView internal =
       _getInternalView(context, viewId);

    // As internal views whether they're stateless.  If they are, don't
    // bother writing anything out.
    if ((internal != null) && internal.isStateless(context, viewId))
      return;

    ExtendedRenderKitService service = _getExtendedRenderKitService(context);
    if ((service != null) &&
        service.isStateless(context))
View Full Code Here

  private InternalView _getInternalView(
    FacesContext context,
    String       viewId)
  {
    InternalView internal = _internalViews.get(viewId);
    if (internal == null)
    {
      // If we're using suffix-mapping, then any internal viewId will
      // get affixed with ".jsp" or ".jspx";  try trimming that off
      // if present
View Full Code Here

        for (Map.Entry<Object, Object> entry : properties.entrySet())
        {
          String name = (String) entry.getKey();
          String className = (String) entry.getValue();
          Class<?> clazz = loader.loadClass(className);
          InternalView view = (InternalView) clazz.newInstance();
          _internalViews.put(name, view);
        }
      }
      catch (IllegalAccessException iae)
      {
View Full Code Here

    if (cached != null)
    {
      return ((cached == _NOT_FOUND) ? null : (InternalView)cached);
    }
   
    InternalView internal = _internalViews.get(viewId);
    if (internal == null)
    {
      // If we're using suffix-mapping, then any internal viewId will
      // get affixed with ".jsp" or ".jspx";  try trimming that off
      // if present
View Full Code Here

  }
 
  @Override
  public StateManagementStrategy getStateManagementStrategy(FacesContext context, String viewId)
  {
    InternalView internal = _finder.getInternalView(context, viewId);
   
    // Use default StateManager processing for the stateful InternalViews
    if (!internal.isStateless(context, viewId))
      return null;
   
    // Otherwise, return StateManagementStrategy that does nothing
    return _STATELESS_STRATEGY;
  }
View Full Code Here

   * @param viewId Veiew Id
   * @return true if the internal view is stateless, false otherwise
   */
  boolean __isStateless(FacesContext context, String viewId)
  {
    InternalView internal = _finder.getInternalView(context, viewId);
    return internal.isStateless(context, viewId);
  }
View Full Code Here

  @Override
  public UIViewRoot createView(FacesContext context, String viewId)
  {
    _initIfNeeded(context);

    InternalView internal = _getInternalView(context, viewId);
    if (internal != null)
    {
      UIViewRoot root = internal.createView(context, viewId);
      if (root != null)
        return root;
      // Otherwise, fall through to default processing
    }
    else if (_checkTimestamp(context))
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidad.render.InternalView

Copyright © 2018 www.massapicom. 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.