|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.myfaces.trinidad.component.visit.VisitTreeUtils
public final class VisitTreeUtils
Utility methods to make usage of the visit tree functionality more user friendly.
| Field Summary | |
|---|---|
static Set<javax.faces.component.visit.VisitHint> |
NON_TRANSIENT_RENDERED_HINTS
Set of VisitHint.SKIP_UNRENDERED and VisitHint.SKIP_TRANSIENT provided
for convenience as it is a common use case. |
| Method Summary | |
|---|---|
static javax.faces.component.visit.VisitContext |
createVisitContext(javax.faces.context.FacesContext context,
Collection<String> ids,
Set<javax.faces.component.visit.VisitHint> hints)
Deprecated. Method is no longer needed and duplicates the functionality provided by VisitContext#createVisitContext(FacesContext, Collection |
static boolean |
visitSingleComponent(javax.faces.context.FacesContext facesContext,
String clientId,
javax.faces.component.visit.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 |
| Field Detail |
|---|
public static final Set<javax.faces.component.visit.VisitHint> NON_TRANSIENT_RENDERED_HINTS
VisitHint.SKIP_UNRENDERED and VisitHint.SKIP_TRANSIENT provided
for convenience as it is a common use case.
| Method Detail |
|---|
@Deprecated
public static javax.faces.component.visit.VisitContext createVisitContext(javax.faces.context.FacesContext context,
Collection<String> ids,
Set<javax.faces.component.visit.VisitHint> hints)
VisitContext#createVisitContext(FacesContext, Collection, Set)
Creates a VisitContext instance for use with
UIComponent.visitTree(javax.faces.component.visit.VisitContext, javax.faces.component.visit.VisitCallback).
context - the FacesContext for the current requestids - the client ids of the components to visit. If null,
all components will be visited.hints - the VisitHints to apply to the visit
public static boolean visitSingleComponent(javax.faces.context.FacesContext facesContext,
String clientId,
javax.faces.component.visit.VisitCallback visitCallback)
Method assumes the RequestContext is available and a view root must be set on the faces context.
facesContext - the faces contextclientId - the client ID of the component to visitvisitCallback - the callback to be invoked if the component is found
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||