|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.sun.facelets.tag.jsf.ComponentSupport
public final class ComponentSupport
| Field Summary | |
|---|---|
static String |
MARK_CREATED
|
| Constructor Summary | |
|---|---|
ComponentSupport()
|
|
| Method Summary | |
|---|---|
static void |
encodeRecursive(FacesContext context,
UIComponent viewToRender)
|
static void |
finalizeForDeletion(UIComponent c)
Used in conjunction with markForDeletion where any UIComponent marked will be removed. |
static UIComponent |
findChild(UIComponent parent,
String id)
A lighter-weight version of UIComponent's findChild. |
static UIComponent |
findChildByTagId(UIComponent parent,
String id)
By TagId, find Child |
static Locale |
getLocale(FaceletContext ctx,
TagAttribute attr)
According to JSF 1.2 tag specs, this helper method will use the TagAttribute passed in determining the Locale intended. |
static UIViewRoot |
getViewRoot(FaceletContext ctx,
UIComponent parent)
Tries to walk up the parent to find the UIViewRoot, if not found, then go to FaceletContext's FacesContext for the view root. |
static boolean |
isNew(UIComponent component)
Determine if the passed component is not null and if it's new to the tree. |
static void |
markForDeletion(UIComponent c)
Marks all direct children and Facets with an attribute for deletion. |
static void |
removeTransient(UIComponent c)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String MARK_CREATED
| Constructor Detail |
|---|
public ComponentSupport()
| Method Detail |
|---|
public static final void finalizeForDeletion(UIComponent c)
c - UIComponent to finalize
public static final UIComponent findChild(UIComponent parent,
String id)
parent - parent to start searching fromid - to match to
public static final UIComponent findChildByTagId(UIComponent parent,
String id)
parent - id -
public static final Locale getLocale(FaceletContext ctx,
TagAttribute attr)
throws TagAttributeException
ctx - FaceletContext to evaluate fromattr - TagAttribute representing a Locale
TagAttributeException - if the Locale cannot be determined
public static final UIViewRoot getViewRoot(FaceletContext ctx,
UIComponent parent)
ctx - FaceletContextparent - UIComponent to search from
public static final void markForDeletion(UIComponent c)
c - UIComponent to markfinalizeForDeletion(UIComponent)
public static final void encodeRecursive(FacesContext context,
UIComponent viewToRender)
throws IOException,
FacesException
IOException
FacesExceptionpublic static void removeTransient(UIComponent c)
public static final boolean isNew(UIComponent component)
component - the component you wish to modify
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||