Package org.apache.myfaces.trinidadinternal.ui.data

Examples of org.apache.myfaces.trinidadinternal.ui.data.DataObject


    String namespaceURI,
    String name
    )
  {
    // give our dataproviders first crack at the dataobject
    DataObject data = super.getDataObject(context, namespaceURI, name);

    if (data == null)
    {
      data = getParentContext().getDataObject(context, namespaceURI, name);
    }
View Full Code Here


      value = super.getAttributeValue(context, attrKey);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        value = super.getAttributeValue(context, attrKey);
      }
      else
View Full Code Here

      count = super.getIndexedChildCount(context);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        count = super.getIndexedChildCount(context);
      }
      else
View Full Code Here

  @Override
  public void render(UIXRenderingContext context, UINode node)
    throws IOException
  {
    DataObject oldDataObject = context.getCurrentDataObject();
    if (oldDataObject != _current)
    {
      super.render(context, node);
    }
    else
View Full Code Here

                                _current);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        child = super.getIndexedChild(context, childIndex);
      }
      else
View Full Code Here

                                _current);
    }
    else
    {
      // If the current data object has changed, don't set it.
      DataObject oldDataObject = context.getCurrentDataObject();
      if (oldDataObject != _current)
      {
        child = super.getNamedChild(context, childName);
      }
      else
View Full Code Here

   */
  public DataObject setCurrentDataObject(
    DataObject newDataObject
    )
  {
    DataObject oldDataObject = getCurrentDataObject();

    _currentDataObject = newDataObject;

    return oldDataObject;
  }
View Full Code Here

      )
      throws IOException
    {
      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);
View Full Code Here

   * 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

    String namespaceURI,
    String name
    )
  {
    // try the dataproviders first
    DataObject data = super.getDataObject(context, namespaceURI, name);

    if (data == null)
    {
      Map<String, DataObject> dataObjects = _getDataObjectMap(namespaceURI, false);
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.data.DataObject

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.