|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.myfaces.view.facelets.tag.jsf.ComponentSupport
public final class ComponentSupport
Field Summary | |
---|---|
static String |
COMPONENT_ADDED_BY_HANDLER_MARKER
Special myfaces core marker to indicate the component is handled by a facelet tag handler, so its creation is not handled by user programatically and PSS remove listener should not register it when a remove happens. |
static String |
FACELET_STATE_INSTANCE
The key under the facelet state map is stored |
static String |
FACET_CREATED_UIPANEL_MARKER
The UIPanel components, which are dynamically generated to serve as a container for facets with multiple non panel children, are marked with this attribute. |
static String |
MARK_CREATED
|
Constructor Summary | |
---|---|
ComponentSupport()
|
Method Summary | |
---|---|
static void |
addFacet(FaceletContext ctx,
UIComponent parent,
UIComponent c,
String facetName)
|
static void |
encodeRecursive(FacesContext context,
UIComponent toRender)
|
static void |
finalizeForDeletion(UIComponent component)
Deprecated. use FaceletCompositionContext.finalizeForDeletion |
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 UIComponent |
findChildInChildrenByTagId(UIComponent parent,
String id)
|
static UIComponent |
findChildInFacetByTagId(UIComponent parent,
String id,
String facetName)
|
static String |
findChildInFacetsByTagId(UIComponent parent,
String id)
|
static UIComponent |
findComponentChildOrFacetFrom(FacesContext facesContext,
UIComponent parent,
String expr)
|
static UIComponent |
findComponentChildOrFacetFrom(UIComponent parent,
String id,
String innerExpr)
|
static String |
findFacetNameByComponentInstance(UIComponent parent,
UIComponent instance)
|
static FaceletState |
getFaceletState(FaceletContext ctx,
UIComponent parent,
boolean create)
|
static String |
getFindComponentExpression(FacesContext facesContext,
UIComponent component)
|
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)
Deprecated. use ComponentHandler.isNew |
static void |
markComponentToRefreshDynamically(FacesContext context,
UIComponent component)
|
static void |
markComponentToRestoreFully(FacesContext context,
UIComponent component)
|
static void |
markForDeletion(UIComponent component)
Deprecated. use FaceletCompositionContext.markForDeletion |
static void |
removeFacet(FaceletContext ctx,
UIComponent parent,
UIComponent c,
String facetName)
|
static void |
removeTransient(UIComponent component)
|
static Object |
restoreInitialTagState(FaceletContext ctx,
FaceletCompositionContext fcc,
UIComponent parent,
String uniqueId)
|
static void |
saveInitialTagState(FaceletContext ctx,
FaceletCompositionContext fcc,
UIComponent parent,
String uniqueId,
Object value)
|
static void |
setCachedFacesContext(UIComponent component,
FacesContext context)
|
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
public static final String FACET_CREATED_UIPANEL_MARKER
public static final String COMPONENT_ADDED_BY_HANDLER_MARKER
public static final String FACELET_STATE_INSTANCE
Constructor Detail |
---|
public ComponentSupport()
Method Detail |
---|
@Deprecated public static void finalizeForDeletion(UIComponent component)
component
- UIComponent to finalizepublic static UIComponent findChild(UIComponent parent, String id)
parent
- parent to start searching fromid
- to match to
public static String findFacetNameByComponentInstance(UIComponent parent, UIComponent instance)
public static UIComponent findChildInFacetByTagId(UIComponent parent, String id, String facetName)
public static UIComponent findChildInChildrenByTagId(UIComponent parent, String id)
public static UIComponent findChildByTagId(UIComponent parent, String id)
parent
- id
-
public static String findChildInFacetsByTagId(UIComponent parent, String id)
public static Locale getLocale(FaceletContext ctx, TagAttribute attr) throws TagAttributeException
ctx
- FaceletContext to evaluate fromattr
- TagAttribute representing a Locale
TagAttributeException
- if the Locale cannot be determinedpublic static UIViewRoot getViewRoot(FaceletContext ctx, UIComponent parent)
ctx
- FaceletContextparent
- UIComponent to search from
@Deprecated public static void markForDeletion(UIComponent component)
component
- UIComponent to markfinalizeForDeletion(UIComponent)
public static void encodeRecursive(FacesContext context, UIComponent toRender) throws IOException, FacesException
IOException
FacesException
public static void removeTransient(UIComponent component)
@Deprecated public static boolean isNew(UIComponent component)
component
- the component you wish to modify
public static void addFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName)
public static void removeFacet(FaceletContext ctx, UIComponent parent, UIComponent c, String facetName)
public static void markComponentToRestoreFully(FacesContext context, UIComponent component)
public static void markComponentToRefreshDynamically(FacesContext context, UIComponent component)
public static UIComponent findComponentChildOrFacetFrom(FacesContext facesContext, UIComponent parent, String expr)
public static UIComponent findComponentChildOrFacetFrom(UIComponent parent, String id, String innerExpr)
public static String getFindComponentExpression(FacesContext facesContext, UIComponent component)
public static Object restoreInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId)
public static void saveInitialTagState(FaceletContext ctx, FaceletCompositionContext fcc, UIComponent parent, String uniqueId, Object value)
public static FaceletState getFaceletState(FaceletContext ctx, UIComponent parent, boolean create)
public static void setCachedFacesContext(UIComponent component, FacesContext context)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |