Facelet#apply(FacesContext, UIComponent).
| 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 jakarta. Generate a unique ID for the passed String |
| public Object | getAttribute(String
the name of the attribute to return. name)Implements abstract jakarta.
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 jakarta. Returns the context object associated with the given key. |
| public ELResolver | getELResolver()
Implements abstract jakarta. Retrieves the |
| public ExpressionFactory | getExpressionFactory()
Implements abstract jakarta. The ExpressionFactory to use within the Facelet this context is executing upon. |
| public FacesContext | getFacesContext()
Implements abstract jakarta. The current FacesContext bound to this "request". |
| public FunctionMapper | getFunctionMapper()
Implements abstract jakarta. Retrieves the |
| public VariableMapper | getVariableMapper()
Implements abstract jakarta. Retrieves the |
| 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. This method will walk through the TemplateClient stack to resolve and apply the definition for the passed name. |
| 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 jakarta. Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in Jakarta Server Pages) |
| 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 jakarta. Include another Facelet defined at some path, absolute to this ClassLoader/OS |
| public boolean | isPropertyResolved()
Overrides jakarta. Returns whether an |
| public void | popClient(TemplateClient
the template client client)Implements abstract com. Pop the last added TemplateClient |
| public void | pushClient(final TemplateClient
the template client client)Implements abstract com. Push the passed TemplateClient onto the stack for Definition Resolution |
| 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 jakarta. Associates a context object with this |
| public void | setAttribute(String
the name of the attribute name, Object the value of the attribute value)Implements abstract jakarta. Support method which is backed by the current VariableMapper. |
| public void | setFunctionMapper(FunctionMapper
the new fnMapper)FunctionMapperImplements abstract jakarta. 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 jakarta. Called to indicate that a |
| public void | setVariableMapper(VariableMapper
the new varMapper)VariableMapperImplements abstract jakarta. 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 jakarta. Doc from jakarta. Generate a unique ID for the passed String | |
| getAttribute | back to summary |
|---|---|
| public Object getAttribute(String name) Implements abstract jakarta. Doc from jakarta.
Return an attribute set by a previous call to | |
| getContext | back to summary |
|---|---|
| public Object getContext(Class<T> key) Overrides jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. Retrieves the
The
Once an
| |
| getExpressionFactory | back to summary |
|---|---|
| public ExpressionFactory getExpressionFactory() Implements abstract jakarta. Doc from jakarta.
The ExpressionFactory to use within the Facelet this context is executing upon. Must not be
| |
| getFacesContext | back to summary |
|---|---|
| public FacesContext getFacesContext() Implements abstract jakarta. Doc from jakarta.
The current FacesContext bound to this "request". Must not be
| |
| getFunctionMapper | back to summary |
|---|---|
| public FunctionMapper getFunctionMapper() Implements abstract jakarta. Doc from jakarta. Retrieves the
| |
| getVariableMapper | back to summary |
|---|---|
| public VariableMapper getVariableMapper() Implements abstract jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. Include another Facelet defined at some path, relative to the executing context, not the current Facelet (same as include directive in Jakarta Server Pages)
| |
| includeFacelet | back to summary |
|---|---|
| public void includeFacelet(UIComponent parent, URL absolutePath) throws IOException, FacesException, ELException Implements abstract jakarta. Doc from jakarta. Include another Facelet defined at some path, absolute to this ClassLoader/OS
| |
| isPropertyResolved | back to summary |
|---|---|
| public boolean isPropertyResolved() Overrides jakarta. Doc from jakarta. 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 jakarta. Doc from jakarta. Associates a context object with this
The
By convention, the | |
| setAttribute | back to summary |
|---|---|
| public void setAttribute(String name, Object value) Implements abstract jakarta. Doc from jakarta. Support method which is backed by the current VariableMapper. | |
| setFunctionMapper | back to summary |
|---|---|
| public void setFunctionMapper(FunctionMapper fnMapper) Implements abstract jakarta. Doc from jakarta. Set the FunctionMapper to use in EL evaluation/creation.
| |
| setPropertyResolved | back to summary |
|---|---|
| public void setPropertyResolved(boolean resolved) Overrides jakarta. Doc from jakarta. Called to indicate that a
The
| |
| setVariableMapper | back to summary |
|---|---|
| public void setVariableMapper(VariableMapper varMapper) Implements abstract jakarta. Doc from jakarta. 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. 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. |
| public boolean | equals(Object
the reference object with which to compare. o)Overrides java. Indicates whether some other object is "equal to" this one. |
| 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() | |