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

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


      // Add one option per link, but only go up to the "maxVisited"
      // value.  (BTW, since maxVisited is 1-indexed, but i is 0-indexed,
      // this is an _inclusive_ range here)
      for (int i = 0; i < maxVisited; i++)
      {
        DataObject link = links.getItem(i);
        MarlinBean option = new MarlinBean(OPTION_NAME);
        option.setAttributeValue(TEXT_ATTR,
                                 link.selectValue(context, TEXT_ATTR));
        option.setAttributeValue(VALUE_ATTR, IntegerUtils.getString(i + 1));

        if (currentValue == i + 1)
          option.setAttributeValue(SELECTED_ATTR, Boolean.TRUE);
        choice.addIndexedChild(option);
View Full Code Here


    else
    {
      atShowAll = false;
    }

    DataObject indexNames = (DataObject) navBar.getAttributeValue(context,
                                                                  _INDEX_NAMES_ATTR);
    for (blockIndex = firstBlockIndex;
         blockIndex <= lastBlockIndex;
         blockIndex++)
    {
View Full Code Here

    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

   */
  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

    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

      // Add one option per link, but only go up to the "maxVisited"
      // value.  (BTW, since maxVisited is 1-indexed, but i is 0-indexed,
      // this is an _inclusive_ range here)
      for (int i = 0; i < maxVisited; i++)
      {
        DataObject link = links.getItem(i);
        MarlinBean option = new MarlinBean(OPTION_NAME);
        option.setAttributeValue(TEXT_ATTR,
                                 link.selectValue(context, TEXT_ATTR));
        option.setAttributeValue(VALUE_ATTR, IntegerUtils.getString(i + 1));

        if (currentValue == i + 1)
          option.setAttributeValue(SELECTED_ATTR, Boolean.TRUE);
        choice.addIndexedChild(option);
View Full Code Here

    else
    {
      atShowAll = false;
    }

    DataObject indexNames = (DataObject) navBar.getAttributeValue(context,
                                                                  _INDEX_NAMES_ATTR);
    for (blockIndex = firstBlockIndex;
         blockIndex <= lastBlockIndex;
         blockIndex++)
    {
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

    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.