public class ComponentTraversalUtils extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
ComponentTraversalUtils.IdContextCallback |
static class |
ComponentTraversalUtils.IdVisitCallback |
| Constructor and Description |
|---|
ComponentTraversalUtils() |
| Modifier and Type | Method and Description |
|---|---|
static <T> ArrayList<T> |
children(Class<T> type,
javax.faces.component.UIComponent base) |
static <T> T |
closest(Class<T> type,
javax.faces.component.UIComponent base) |
static javax.faces.component.UIForm |
closestForm(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component) |
static javax.faces.component.UIComponent |
closestNamingContainer(javax.faces.component.UIComponent component) |
static javax.faces.component.UniqueIdVendor |
closestUniqueIdVendor(javax.faces.component.UIComponent component) |
static <T> T |
first(Class<T> type,
javax.faces.component.UIComponent base) |
static javax.faces.component.UIComponent |
firstById(String id,
javax.faces.component.UIComponent base,
String separatorString,
javax.faces.context.FacesContext context)
Finds the first component by the given id expression or client id.
|
static javax.faces.component.UIComponent |
firstById(String id,
javax.faces.component.UIComponent base,
String separatorString,
javax.faces.context.FacesContext context,
boolean skipUnrendered)
Finds the first component by the given id expression or client id.
|
static javax.faces.component.UIComponent |
firstWithId(String id,
javax.faces.component.UIComponent base)
Finds the first component with the given id (NOT clientId!).
|
public static <T> T closest(Class<T> type, javax.faces.component.UIComponent base)
public static <T> T first(Class<T> type, javax.faces.component.UIComponent base)
public static <T> ArrayList<T> children(Class<T> type, javax.faces.component.UIComponent base)
public static javax.faces.component.UIComponent firstWithId(String id, javax.faces.component.UIComponent base)
id - The id.base - The base component to start the traversal.public static javax.faces.component.UIComponent firstById(String id, javax.faces.component.UIComponent base, String separatorString, javax.faces.context.FacesContext context)
id - The id.base - The base component to start the traversal.separatorString - The seperatorString (e.g. :).context - The FacesContext.public static javax.faces.component.UIComponent firstById(String id, javax.faces.component.UIComponent base, String separatorString, javax.faces.context.FacesContext context, boolean skipUnrendered)
id - The id.base - The base component to start the traversal.separatorString - The seperatorString (e.g. :).context - The FacesContext.skipUnrendered - Defined if unrendered components should be skipped.public static javax.faces.component.UIForm closestForm(javax.faces.context.FacesContext context,
javax.faces.component.UIComponent component)
public static javax.faces.component.UniqueIdVendor closestUniqueIdVendor(javax.faces.component.UIComponent component)
public static javax.faces.component.UIComponent closestNamingContainer(javax.faces.component.UIComponent component)
Copyright © 2015. All rights reserved.