javax.faces.component
Class _ComponentUtils

java.lang.Object
  extended byjavax.faces.component._ComponentUtils

class _ComponentUtils
extends java.lang.Object

A collection of static helper methods for locating UIComponents.

Version:
$Revision: 371488 $ $Date: 2006-01-23 03:16:37 -0500 (Mon, 23 Jan 2006) $
Author:
Manfred Geiler (latest modification by $Author: mmarinschek $)

Method Summary
(package private) static void callValidators(FacesContext context, UIInput input, java.lang.Object convertedValue)
           
(package private) static UIComponent findComponent(UIComponent findBase, java.lang.String id)
          Find the component with the specified id starting from the specified component.
(package private) static UIComponent findParentNamingContainer(UIComponent component, boolean returnRootIfNotFound)
           
(package private) static UIComponent getRootComponent(UIComponent component)
           
(package private) static java.lang.String getStringValue(FacesContext context, ValueBinding vb)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

findParentNamingContainer

static UIComponent findParentNamingContainer(UIComponent component,
                                             boolean returnRootIfNotFound)

getRootComponent

static UIComponent getRootComponent(UIComponent component)

findComponent

static UIComponent findComponent(UIComponent findBase,
                                 java.lang.String id)
Find the component with the specified id starting from the specified component.

Param id must not contain any NamingContainer.SEPARATOR_CHAR characters (ie ":"). This method explicitly does not search into any child naming container components; this is expected to be handled by the caller of this method.

For an implementation of findComponent which does descend into child naming components, see org.apache.myfaces.custom.util.ComponentUtils.

Returns:
findBase, a descendant of findBase, or null.

callValidators

static void callValidators(FacesContext context,
                           UIInput input,
                           java.lang.Object convertedValue)

getStringValue

static java.lang.String getStringValue(FacesContext context,
                                       ValueBinding vb)


Copyright 2006 Apache Software Foundation. All Rights Reserved.