Facelet#apply(FacesContext, UIComponent).
This means that included Facelets are treated the same as the JSP include
directive.
| Modifier and Type | Class and Description |
|---|---|
| private static class |
| Modifier and Type | Field and Description |
|---|---|
| private final List | |
| private final ELContext | |
| private final DefaultFacelet | |
| private final List | |
| private final FacesContext | |
| private FunctionMapper | |
| private final Map | |
| private String | |
| private final Map | |
| private final StringBuilder | |
| private VariableMapper |
| Access | Constructor and Description |
|---|---|
| public | |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | extendClient(final TemplateClient client)
Implements abstract com. |
| public String | generateUniqueId(String
the string from which to generate the ID. base)Implements abstract javax. Generate a unique ID for the passed String |
| public Object | getAttribute(String
the name of the attribute to return. name)Implements abstract javax. Return an attribute set by a
previous call to |
| public Object | getContext(Class<T>
The unique identifier that was used to associate the
context object with this key)ELContext.Overrides javax. |
| public ELResolver | getELResolver()
Implements abstract javax. ELResolver associated with this context.
|
| public ExpressionFactory | getExpressionFactory()
Implements abstract javax. The ExpressionFactory to use within the Facelet this context is executing upon. |
| public FacesContext | getFacesContext()
Implements abstract javax. The current FacesContext bound to this "request". |
| public FunctionMapper | getFunctionMapper()
Implements abstract javax. FunctionMapper associated with this
ELContext.
|
| public VariableMapper | getVariableMapper()
Implements abstract javax. VariableMapper associated with this
ELContext.
|
| public boolean | includeDefinition(UIComponent
the UIComponent to apply to parent, String name or null of the definition you want to apply name)Implements abstract com. |
| public void | includeFacelet(UIComponent
the parent, String UIComponent that will be the
parent of any components in the included facelet.the path of the resource containing the
facelet markup, relative to the current markup relativePath)Implements abstract javax. Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP) |
| public void | includeFacelet(UIComponent
the parent, URL UIComponent that will be the
parent of any components in the included facelet.the absolute path to the resource containing
the facelet markup absolutePath)Implements abstract javax. Include another Facelet defined at some path, absolute to this ClassLoader/OS |
| public boolean | isPropertyResolved()
Overrides javax. ELResolver has successfully resolved a
given (base, property) pair.
|
| public void | popClient(TemplateClient client)
Implements abstract com. |
| public void | pushClient(final TemplateClient client)
Implements abstract com. |
| public void | putContext(Class<T>
The key used by an @{link ELResolver} to identify this
context object. key, Object The context object to add to the collection. contextObject)Overrides javax. ELContext.
|
| public void | setAttribute(String
the name of the attribute name, Object the value of the attribute value)Implements abstract javax. Support method which is backed by the current VariableMapper. |
| public void | setFunctionMapper(FunctionMapper
the new fnMapper)FunctionMapperImplements abstract javax. Set the FunctionMapper to use in EL evaluation/creation. |
| public void | setPropertyResolved(boolean
true if the property has been resolved, or false if
not. resolved)Overrides javax. ELResolver has successfully
resolved a given (base, property) pair.
|
| public void | setVariableMapper(VariableMapper
the new varMapper)VariableMapperImplements abstract javax. Set the VariableMapper to use in EL evaluation/creation. |
| clients | back to summary |
|---|---|
| private final List<DefaultFaceletContext. | |
| ctx | back to summary |
|---|---|
| private final ELContext ctx | |
| facelet | back to summary |
|---|---|
| private final DefaultFacelet facelet | |
| faceletHierarchy | back to summary |
|---|---|
| private final List<Facelet> faceletHierarchy | |
| faces | back to summary |
|---|---|
| private final FacesContext faces | |
| fnMapper | back to summary |
|---|---|
| private FunctionMapper fnMapper | |
| ids | back to summary |
|---|---|
| private final Map<String, Integer> ids | |
| prefix | back to summary |
|---|---|
| private String prefix | |
| prefixes | back to summary |
|---|---|
| private final Map<Integer, Integer> prefixes | |
| uniqueIdBuilder | back to summary |
|---|---|
| private final StringBuilder uniqueIdBuilder | |
| varMapper | back to summary |
|---|---|
| private VariableMapper varMapper | |
| DefaultFaceletContext | back to summary |
|---|---|
| public DefaultFaceletContext(DefaultFaceletContext ctx, DefaultFacelet facelet) | |
| DefaultFaceletContext | back to summary |
|---|---|
| public DefaultFaceletContext(FacesContext faces, DefaultFacelet facelet) | |
| extendClient | back to summary |
|---|---|
| public void extendClient(final TemplateClient client) Implements abstract com.
| |
| generateUniqueId | back to summary |
|---|---|
| public String generateUniqueId(String base) Implements abstract javax. Doc from javax. Generate a unique ID for the passed String | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements abstract javax. Doc from javax. Return an attribute set by a
previous call to | |
| getContext | back to summary |
|---|---|
| public Object getContext(Class<T> key) Overrides javax. Doc from javax. Returns the context object associated with the given key. The By convention, the object returned will be of the type specified by
the | |
| getELResolver | back to summary |
|---|---|
| public ELResolver getELResolver() Implements abstract javax. Doc from javax. Retrieves the The Once an
| |
| getExpressionFactory | back to summary |
|---|---|
| public ExpressionFactory getExpressionFactory() Implements abstract javax. Doc from javax. The ExpressionFactory to use within
the Facelet this context is executing upon. Must not be
| |
| getFacesContext | back to summary |
|---|---|
| public FacesContext getFacesContext() Implements abstract javax. Doc from javax. The current FacesContext bound to
this "request". Must not be
| |
| getFunctionMapper | back to summary |
|---|---|
| public FunctionMapper getFunctionMapper() Implements abstract javax. Doc from javax. Retrieves the
| |
| getVariableMapper | back to summary |
|---|---|
| public VariableMapper getVariableMapper() Implements abstract javax. Doc from javax. Retrieves the
| |
| includeDefinition | back to summary |
|---|---|
| public boolean includeDefinition(UIComponent parent, String name) throws IOException Implements abstract com. Doc from com. This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. If it's been resolved and applied, this method will return true.
| |
| includeFacelet | back to summary |
|---|---|
| public void includeFacelet(UIComponent parent, String relativePath) throws IOException, FacesException, ELException Implements abstract javax. Doc from javax. Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in JSP)
| |
| includeFacelet | back to summary |
|---|---|
| public void includeFacelet(UIComponent parent, URL absolutePath) throws IOException, FacesException, ELException Implements abstract javax. Doc from javax. Include another Facelet defined at some path, absolute to this ClassLoader/OS
| |
| isPropertyResolved | back to summary |
|---|---|
| public boolean isPropertyResolved() Overrides javax. Doc from javax. Returns whether an The
| |
| popClient | back to summary |
|---|---|
| public void popClient(TemplateClient client) Implements abstract com. Doc from com. Pop the last added TemplateClient
| |
| pushClient | back to summary |
|---|---|
| public void pushClient(final TemplateClient client) Implements abstract com. Doc from com. Push the passed TemplateClient onto the stack for Definition Resolution
| |
| putContext | back to summary |
|---|---|
| public void putContext(Class<T> key, Object contextObject) Overrides javax. Doc from javax. Associates a context object with this The By convention, the | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Implements abstract javax. Doc from javax. Support method which is backed by the current VariableMapper. | |
| setFunctionMapper | back to summary |
|---|---|
| public void setFunctionMapper(FunctionMapper fnMapper) Implements abstract javax. Doc from javax. Set the FunctionMapper to use in EL evaluation/creation.
| |
| setPropertyResolved | back to summary |
|---|---|
| public void setPropertyResolved(boolean resolved) Overrides javax. Doc from javax. Called to indicate that a The
| |
| setVariableMapper | back to summary |
|---|---|
| public void setVariableMapper(VariableMapper varMapper) Implements abstract javax. Doc from javax. Set the VariableMapper to use in EL evaluation/creation.
| |
| Modifier and Type | Field and Description |
|---|---|
| private final Set | |
| private final DefaultFacelet | |
| private final boolean | |
| private final TemplateClient |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | apply(FaceletContext
the FaceletContext of your instance, not the
templates' ctx, UIComponent current UIComponent instance to be applied parent, String the String name or null if the whole body should be included name)Implements com. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. |
| public boolean |
| names | back to summary |
|---|---|
| private final Set<String> names | |
| owner | back to summary |
|---|---|
| private final DefaultFacelet owner | |
| root | back to summary |
|---|---|
| private final boolean root | |
| target | back to summary |
|---|---|
| private final TemplateClient target | |
| TemplateManager | back to summary |
|---|---|
| public TemplateManager(DefaultFacelet owner, TemplateClient target, boolean root) | |
| apply | back to summary |
|---|---|
| public boolean apply(FaceletContext ctx, UIComponent parent, String name) throws IOException Implements com. Doc from com. This contract is much like the normal FaceletHandler.apply method, but it takes in an optional String name which tells this instance what fragment/definition it's looking for. If you are a match, apply your logic to the passed UIComponent and return true, otherwise do nothing and return false.
| |
| equals | back to summary |
|---|---|
| public boolean equals(Object o) Overrides java. Doc from java. Indicates whether some other object is "equal to" this one.
The
An equivalence relation partitions the elements it operates on into equivalence classes; all the members of an equivalence class are equal to each other. Members of an equivalence class are substitutable for each other, at least for some purposes. | |
| isRoot | back to summary |
|---|---|
| public boolean isRoot() | |