org.apache.myfaces.trinidad.component.visit
Class VisitTreeUtils
java.lang.Object
org.apache.myfaces.trinidad.component.visit.VisitTreeUtils
public final class VisitTreeUtils
- extends Object
Utility methods to make usage of the visit tree functionality more user friendly.
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
visitSingleComponent
public static boolean visitSingleComponent(FacesContext facesContext,
String clientId,
VisitCallback visitCallback)
- Visit a single component in the component tree starting from the view root.
Method assumes the RequestContext
is available and a view root must be set on the faces context.
- Parameters:
facesContext
- the faces contextclientId
- the client ID of the component to visitvisitCallback
- the callback to be invoked if the component is found
- Returns:
- true if a component was visited
Copyright © 2001-2011 The Apache Software Foundation. All Rights Reserved.