Package org.apache.myfaces.trinidadinternal.ui.path

Examples of org.apache.myfaces.trinidadinternal.ui.path.Path


      return optionSelected;
    }

    private int _getChildIndex(UIXRenderingContext context)
    {
      Path path = context.getPath();
      // If the path is empty, this means we're working with composite
      // 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);
      }

      return path.getElementIndex(-1);
    }
View Full Code Here


      return optionSelected;
    }

    private int _getChildIndex(UIXRenderingContext context)
    {
      Path path = context.getPath();
      // If the path is empty, this means we're working with composite
      // 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);
      }

      return path.getElementIndex(-1);
    }
View Full Code Here

      return optionSelected;
    }

    private int _getChildIndex(UIXRenderingContext context)
    {
      Path path = context.getPath();
      // If the path is empty, this means we're working with composite
      // 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);
      }

      return path.getElementIndex(-1);
    }
View Full Code Here

      return optionSelected;
    }

    private int _getChildIndex(UIXRenderingContext context)
    {
      Path path = context.getPath();
      // If the path is empty, this means we're working with composite
      // 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);
      }

      return path.getElementIndex(-1);
    }
View Full Code Here

TOP

Related Classes of org.apache.myfaces.trinidadinternal.ui.path.Path

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.