ViewHandlingStrategy handles Facelets/PDL-based views.
| Modifier and Type | Class and Description |
|---|---|
| private static class | FaceletViewHandlingStrategy.
Utility class to encapsulate the ValueExpression evaluation of the various MethodExpression composite component properties. |
| private static class | FaceletViewHandlingStrategy.
Provides iteration services over a composite component's MethodExpression-enabled |
| private static interface | FaceletViewHandlingStrategy.
Implementations of this interface provide the |
| private static class | FaceletViewHandlingStrategy.
Managed the
|
| protected static class | FaceletViewHandlingStrategy.
Simple no-op writer. |
| Modifier and Type | Field and Description |
|---|---|
| private Map | |
| private String[] | |
| private DefaultFaceletFactory | |
| public static final String | |
| private static final Logger | |
| private Cache | |
| private String[] | |
| public static final String | |
| private int | |
| private final FaceletViewHandlingStrategy. | |
| private ViewDeclarationLanguageFactory |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public void | buildView(FacesContext
the ctx, UIViewRoot FacesContext for this requestthe view)UIViewRoot to populate with children using techniques specific to this VDL
implementation.Implements abstract jakarta.
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 jakarta.
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 jakarta.
Create a component given a |
| private BeanInfo | |
| protected ResponseWriter | Returns: aResponseWriter for processing the requestthe context)FacesContext for the current request
|
| public UIViewRoot | createView(FacesContext
the ctx, String FacesContext for this request.the identifier of an artifact that contains the VDL syntax that describes this view. viewId)Overrides com.
Create a |
| public BeanInfo | getComponentMetadata(FacesContext
The context, Resource FacesContext for this request.The ccResource)Resource that represents the component.Implements abstract jakarta. Called by Application._createComponent(Resource). |
| private String | |
| private String | |
| private String | |
| private DefaultFaceletFactory | Returns: the default faceletFactorysGets and if needed initializes the faceletFactory |
| public String | getId()
Overrides jakarta. Returns a non-null String that can be used to identify this view declaration language. |
| private String | |
| protected String | Returns: the content type to be used for this responsethe context, String FacesContext for the current requestthe original contentType orig)
|
| public Resource | getScriptComponentResource(FacesContext
The context, Resource FacesContext for this request.The componentResource)Resource that represents the component.Implements abstract jakarta.
Take implementation specific action to discover a |
| private HttpSession | Returns: the session, or null if we are not using server state saving.the Faces context. context)Get a session (if we are using server state saving). |
| public StateManagementStrategy | getStateManagementStrategy(FacesContext
the context, String FacesContext for the current request.the view id. viewId)Implements abstract jakarta.
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 which to extract the metadata viewId)Implements abstract jakarta.
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 jakarta.
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 jakarta.
Return a |
| protected void | handleFaceletNotFound(FacesContext
the context, String FacesContext for the current requestthe view ID that was to be mapped to a Facelet viewId, String optional message to include in the 404 message)Handles the case where a Facelet cannot be found. |
| protected void | handleRenderException(FacesContext
the context, Exception FacesContext for the current requestthe caught Exception e)Handles the case where rendering throws an Exception. |
| private boolean | |
| public boolean | Returns: true if assuming a default configuration and the view ID's extension in ViewHandler#FACELETS_SUFFIX_PARAM_NAME
Otherwise try to match the view ID based on the configured extensions and prefixes in ViewHandler#FACELETS_VIEW_MAPPINGS_PARAM_NAMEthe view ID to check viewId)Implements abstract com.
|
| protected void | |
| protected void | |
| public static boolean | |
| private boolean | |
| private boolean | |
| private boolean | |
| private UIComponent | locateComponentByClientId(final FacesContext
the Faces context. context, final UIComponent parent, final String the client id of the component to find. clientId, final boolean dynamic)Find the given component in the component tree. |
| private Stream | Returns: The stream with views, possibly mapped if neededThe stream of views to potentially map views, ViewVisitOption... Options telling if and if so how to map options)Maps the element in the passed in stream of views according to the given options. |
| private void | |
| private void | |
| private void | |
| private void | reapplyDynamicActions(FacesContext
the Faces context. context)Reapply the dynamic actions after Facelets reapply. |
| private void | reapplyDynamicAdd(FacesContext
the Faces context. context, ComponentStruct the component struct. struct)Reapply the dynamic add after Facelets reapply. |
| private void | reapplyDynamicRemove(FacesContext
the Faces context. context, ComponentStruct the component struct. struct)Reapply the dynamic remove after Facelets reapply. |
| public void | renderView(FacesContext
the ctx, UIViewRoot viewToRender)FacesContext for this request.Implements abstract jakarta.
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)Overrides com.
If |
| 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 jakarta.
Assuming the component metadata for argument
|
| private void | |
| 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 jakarta.
Assuming the component metadata for argument |
| private boolean | |
| private void | |
| private void | |
| private String | |
| public boolean | viewExists(FacesContext
The context, String FacesContext for this request.the view id to test viewId)Overrides jakarta. Tests whether a physical resource corresponding to the specified viewId exists. |