Examples of UIXRenderingContext


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)
      {
        return baseNode.getAttributeValue(parentContext, _attrKey);
      }
View Full Code Here

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

   */
  public Object getValue(
    UIXRenderingContext context
    )
  {
    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

    {
      ContextPoppingUINode poppingNode =
                              (ContextPoppingUINode)context.getAncestorNode(0);
      DataObject poppingCurrentDataObject  = context.getCurrentDataObject();

      UIXRenderingContext poppedContext = context.getParentContext();

      UINode poppedNode = poppingNode.getPoppedNode(context);

      // push on the child's path information
      poppedContext.pushChild(poppedNode,
                              poppingNode.__getChildName(),
                              poppingNode.__getChildIndex());
      poppedContext.pushRenderedChild(poppedContext, poppedNode);

      DataObject poppedCurrentDataObject =
        poppedContext.setCurrentDataObject(poppingCurrentDataObject);

      try
      {
        poppedNode.render(poppedContext);
      }
      finally
      {
        poppedContext.setCurrentDataObject(poppedCurrentDataObject);
        poppedContext.popRenderedChild(poppedContext);
        poppedContext.popChild();
      }
    }
View Full Code Here

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

                          UIComponent component)
    throws IOException
  {
    if (!getRendersChildren())
    {
      UIXRenderingContext rContext = getRenderingContext(context, component);
      UINode node = createUINode(context, component);
      Renderer renderer = _getRenderer(rContext, node);
      assert(renderer instanceof PreAndPostRenderer);
      ((PreAndPostRenderer) renderer).prerender(rContext, node);
    }
View Full Code Here

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

  @Override
  public void encodeEnd(FacesContext context,
                        UIComponent component)
    throws IOException
  {
    UIXRenderingContext rContext = getRenderingContext(context, component);
    if (getRendersChildren())
    {
      createUINode(context, component).render(rContext);
    }
    else
View Full Code Here

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

  /**
   * Gets the current data on the rendering context.
   */
  public final Object getCurrent()
  {
    UIXRenderingContext context = getRenderingContext();
    DataObject currentData = context.getCurrentDataObject();
    return adapt(currentData);
  }
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

    }

    @Override
    public Object get(Object key)
    {
      UIXRenderingContext context = getRenderingContext();
      Object value = selectValue(context, key);
      //ystem.out.println("key:"+key+" value:"+value);
      value = adapt(value);
      return value;
    }
View Full Code Here

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

    }

    @Override
    public Object put(Object key, Object value)
    {
      UIXRenderingContext context = getRenderingContext();
      Object old = selectValue(context, key);
      updateValue(context, key, value);
      return old;
    }
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
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.