Examples of UIXRenderingContext


Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

      // rendering.  Jump up to the parent, and use the end of its Path.
      // Sadly, this isn't perfect - it only helps you if the <option>
      // is tops in the template/composite widget - but it helps out a lot.
      if (path.getElementCount() == 0)
      {
        UIXRenderingContext parent = context.getParentContext();
        if (parent == null)
          return -1;
        return _getChildIndex(parent);
      }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    context.getResponseWriter().flush();

    // We need to keep pushing the RenderingContext so that
    // we properly handle composite rendering.
    FacesContext fContext = context.getFacesContext();
    UIXRenderingContext oldContext =
        UINodeRendererBase.__setRenderingContext(fContext, context);

    _renderComponent(fContext, _component);

    UINodeRendererBase.__restoreRenderingContext(fContext, oldContext);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    throws IOException
  {
    if (!getRendersChildren())
    {
      UIXComponentUINode adapter = UIXComponentUINode.__getAdapter(component);
      UIXRenderingContext rContext = getRenderingContext(context, component);
      adapter.prerenderInternal(rContext, adapter);
    }
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

  public void encodeEnd(FacesContext context,
                        UIComponent component)
    throws IOException
  {
    UIXComponentUINode adapter = UIXComponentUINode.__getAdapter(component);
    UIXRenderingContext rContext = getRenderingContext(context, component);

    if (getRendersChildren())
    {
      adapter.renderInternal(rContext, adapter);
    }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

  static protected UIXRenderingContext getRenderingContext(
    FacesContext context,
    UIComponent  component,
    boolean      createIfNull) throws IOException
  {
    UIXRenderingContext rContext = __getRenderingContext(context);

    if (rContext == null && createIfNull)
    {
      FacesRenderingContext frContext =
        FacesRenderingContext.createRenderingContext(context);
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    UIXRenderingContext rContext)
  {
    if (rContext == null)
      throw new NullPointerException();

    UIXRenderingContext oldContext = __getRenderingContext(fContext);
    if (oldContext == rContext)
      return null;

    fContext.getExternalContext().getRequestMap().put(_CONTEXT_KEY, rContext);
    return oldContext;
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

   */
  public Object getValue(
    UIXRenderingContext context
    )
  {
    UIXRenderingContext parentContext = context.getParentContext();

    if (parentContext != null)
    {
      UINode baseNode = parentContext.getAncestorNode(0);

      if (baseNode != null)
      {
        if (_childName != null)
        {
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    UIXRenderingContext context
    )
  {
    if (context != null)
    {
      UIXRenderingContext parentContext = context.getParentContext();
     
      if (parentContext != null)
      {
        return parentContext.getAncestorNode(0);
      }
    }

    return null;
  }
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    TreeWalker       walker,
    Object           value,
    PathImpl         path,
    boolean          renderedOnly) throws IOException
  {
    UIXRenderingContext childContext =
      _getChildRenderingContext(context, ancestor);

    // Walk the indexed children
    int count = ancestor.getIndexedChildCount(context);
    for(int i = 0; i < count; i++)
View Full Code Here

Examples of org.apache.myfaces.trinidadinternal.ui.UIXRenderingContext

    UIComponent component = node.getUIComponent();
    if (component != null)
      return component;

    // Else look up its ancestors.
    UIXRenderingContext rContext = context.getParentContext();
    while(rContext != null)
    {
      component = rContext.getAncestorNode(0).getUIComponent();
      if (component != null)
        return component;
      rContext  = rContext.getParentContext();
    }
     return null;
  }
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.