Provides a simple implementation of
ViewDeclarationLanguage that can
be subclassed by developers wishing to provide specialized behavior
to an existing ViewDeclarationLanguage instance. The default
implementation of all methods is to call through to the wrapped
ViewDeclarationLanguage instance.
Usage: extend this class and push the implementation being wrapped to the
constructor and use getWrapped to access the instance being wrapped.
| Modifier and Type | Field and Description |
|---|---|
| private ViewDeclarationLanguage |
| Access | Constructor and Description |
|---|---|
| public | ViewDeclarationLanguageWrapper()
Deprecated
Use the other constructor taking the implementation being wrapped.
|
| public | ViewDeclarationLanguageWrapper(ViewDeclarationLanguage
The implementation being wrapped. wrapped)If this view declaration language has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. |
| Modifier and Type | Method and Description |
|---|---|
| public void | buildView(FacesContext
the context, UIViewRoot FacesContext for this requestthe root)UIViewRoot to populate with children
using techniques specific to this VDL implementation.Implements abstract javax. Take any actions specific to
this VDL implementation to cause the argument
|
| public List | calculateResourceLibraryContracts(FacesContext
the context, String FacesContext for this requestthe view id for which the applicable resource library
contracts should be calculated. viewId)Overrides javax. Return the list of resource library
contracts that will be made available for use in the view
specified by the argument |
| public UIComponent | createComponent(FacesContext
the context, String FacesContext for this requestthe fully qualified tag library URI that contains the component taglibURI, String the name of the tag within that library that exposes the component tagName, Map<String, Object> any name=value pairs that would otherwise have been
given on the markup that would cause the creation of this component or
attributes)null if no attributes need be given.Overrides javax. Create a component given a
|
| public UIViewRoot | createView(FacesContext
the context, String FacesContext for this request.the identifier of an artifact that contains the VDL
syntax that describes this view. viewId)Implements abstract javax. Create
a |
| public BeanInfo | getComponentMetadata(FacesContext
The context, Resource FacesContext for this request.The componentResource)Resource that represents the component.Implements abstract javax. Return a reference to the component
metadata for the composite component represented by the argument
|
| public String | getId()
Overrides javax. Returns a non-null String that can be used to identify this view declaration language. |
| public Resource | getScriptComponentResource(FacesContext
The context, Resource FacesContext for this request.The componentResource)Resource that represents the component.Implements abstract javax. Take implementation specific action
to discover a |
| public StateManagementStrategy | getStateManagementStrategy(FacesContext
the context, String FacesContext for the current request.the view id. viewId)Implements abstract javax. For implementations that want to
control the implementation of state saving and restoring, the
|
| public ViewMetadata | getViewMetadata(FacesContext
The context, String FacesContext for this request.the view id from whith to extract the metadata viewId)Implements abstract javax. Return a reference to the view
metadata for the view represented by the argument
|
| public Stream | getViews(FacesContext
The context, String FacesContext for this request.The initial path from which to start looking for views path, ViewVisitOption... The options to influence the traversal. See options)ViewVisitOption for details on those.Overrides javax.
Return a |
| public Stream | getViews(FacesContext
The context, String FacesContext for this request.The initial path from which to start looking for views path, int The absolute maximum depth of nested directories to visit counted from the root ( maxDepth, ViewVisitOption... /).The options to influence the traversal. See options)ViewVisitOption for details on those.Overrides javax.
Return a |
| public ViewDeclarationLanguage | getWrapped()
Implements javax. A class that implements this interface uses this method to return an instance of the class being wrapped. |
| public void | renderView(FacesContext
the context, UIViewRoot view)FacesContext for this request.Implements abstract javax. Render a view rooted at
argument |
| public UIViewRoot | restoreView(FacesContext
the context, String FacesContext for this request.the identifier for a previously rendered view. viewId)Implements abstract javax. Restore a |
| public void | retargetAttachedObjects(FacesContext
the FacesContext for this request. context, UIComponent The UIComponent in the view to which the
attached objects must be attached. This UIComponent must have
its component metadata already associated and available from via
the JavaBeans API. topLevelComponent, List<AttachedObjectHandler> the tag handlers for the attached objects handlers)Overrides javax. Assuming the component
metadata for argument |
| public void | retargetMethodExpressions(FacesContext
the FacesContext for this request. context, UIComponent The UIComponent in the view to which the
attached objects must be attached. This UIComponent must have
its component metadata already associated and available from via
the JavaBeans API. topLevelComponent)Overrides javax. Assuming the component metadata for
argument |
| public boolean | viewExists(FacesContext
The context, String FacesContext for this request.the view id to test viewId)Overrides javax. Tests whether a physical resource corresponding to the specified viewId exists. |
| wrapped | back to summary |
|---|---|
| private ViewDeclarationLanguage wrapped | |
| ViewDeclarationLanguageWrapper | back to summary |
|---|---|
| public ViewDeclarationLanguageWrapper()
Deprecated Use the other constructor taking the implementation being wrapped.
| |
| ViewDeclarationLanguageWrapper | back to summary |
|---|---|
| public ViewDeclarationLanguageWrapper(ViewDeclarationLanguage wrapped) If this view declaration language has been decorated,
the implementation doing the decorating should push the implementation being wrapped to this constructor.
The
| |
| buildView | back to summary |
|---|---|
| public void buildView(FacesContext context, UIViewRoot root) throws IOException Implements abstract javax. Doc from javax. Take any actions specific to
this VDL implementation to cause the argument
The Facelets implementation must insure that markup comprising
the view must be executed, with the
If the
| |
| calculateResourceLibraryContracts | back to summary |
|---|---|
| public List Overrides javax. Doc from javax. Return the list of resource library
contracts that will be made available for use in the view
specified by the argument
| |
| createComponent | back to summary |
|---|---|
| public UIComponent createComponent(FacesContext context, String taglibURI, String tagName, Map<String, Object> attributes) Overrides javax. Doc from javax. Create a component given a
| |
| createView | back to summary |
|---|---|
| public UIViewRoot createView(FacesContext context, String viewId) Implements abstract javax. Doc from javax. Create
a
| |
| getComponentMetadata | back to summary |
|---|---|
| public BeanInfo getComponentMetadata(FacesContext context, Resource componentResource) Implements abstract javax. Doc from javax. Return a reference to the component
metadata for the composite component represented by the argument
| |
| getId | back to summary |
|---|---|
| public String getId() Overrides javax. Doc from javax. Returns a non-null String that can be used to identify this view declaration language. The default implementation returns the fully qualified class name of the view declaration language implementation. Subclasses may override to provide a more meaningful id. | |
| getScriptComponentResource | back to summary |
|---|---|
| public Resource getScriptComponentResource(FacesContext context, Resource componentResource) Implements abstract javax. Doc from javax. Take implementation specific action
to discover a
| |
| getStateManagementStrategy | back to summary |
|---|---|
| public StateManagementStrategy getStateManagementStrategy(FacesContext context, String viewId) Implements abstract javax. Doc from javax. For implementations that want to
control the implementation of state saving and restoring, the
| |
| getViewMetadata | back to summary |
|---|---|
| public ViewMetadata getViewMetadata(FacesContext context, String viewId) Implements abstract javax. Doc from javax. Return a reference to the view
metadata for the view represented by the argument
| |
| getViews | back to summary |
|---|---|
| public Stream Overrides javax. Doc from javax.
Return a This method works as if invoking it were equivalent to evaluating the expression: Put differently, it visits all levels of the resource tree.getViewResources(facesContext, start, Integer.MAX_VALUE, options)
| |
| getViews | back to summary |
|---|---|
| public Stream Overrides javax. Doc from javax.
Return a
The
| |
| getWrapped | back to summary |
|---|---|
| public ViewDeclarationLanguage getWrapped() Implements javax. Doc from javax. A class that implements this interface uses this method to return an instance of the class being wrapped.
| |
| renderView | back to summary |
|---|---|
| public void renderView(FacesContext context, UIViewRoot view) throws IOException Implements abstract javax. Doc from javax. Render a view rooted at
argument
| |
| restoreView | back to summary |
|---|---|
| public UIViewRoot restoreView(FacesContext context, String viewId) Implements abstract javax. Doc from javax. Restore a
| |
| retargetAttachedObjects | back to summary |
|---|---|
| public void retargetAttachedObjects(FacesContext context, UIComponent topLevelComponent, List<AttachedObjectHandler> handlers) Overrides javax. Doc from javax. Assuming the component
metadata for argument An algorithm semantically equivalent to the following must be implemented.
The implementation must support retargeting attached objects from the top level compsite component to targets that are composite and non-composite components. An implementation is provided that will throw
| |
| retargetMethodExpressions | back to summary |
|---|---|
| public void retargetMethodExpressions(FacesContext context, UIComponent topLevelComponent) Overrides javax. Doc from javax. Assuming the component metadata for
argument
An implementation is provided that will throw
| |
| viewExists | back to summary |
|---|---|
| public boolean viewExists(FacesContext context, String viewId) Overrides javax. Doc from javax. Tests whether a physical resource corresponding to the specified viewId exists. The default implementation uses
| |