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.

- - ### Method Summary

    Methods
    Modifier and Type | Method and Description
    --- | ---
    `static boolean` | `visitSingleComponent(javax.faces.context.FacesContext facesContext, String clientId, VisitCallback visitCallback)` Visit a single component in the component tree starting from the view root.

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Method Detail

    - #### visitSingleComponent

          public static boolean visitSingleComponent(javax.faces.context.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 context
        `clientId` - the client ID of the component to visit
        `visitCallback` - the callback to be invoked if the component is found
      Returns:
        true if a component was visited

Copyright © 2001-2016 The Apache Software Foundation. All Rights Reserved.