Top Description Fields Constructors Methods
jakarta.faces.application

public abstract Class ViewHandlerWrapper

extends ViewHandler
implements FacesWrapper<ViewHandler>
Class Inheritance
All Implemented Interfaces
jakarta.faces.FacesWrapper
Imports
java.io.IOException, java.util.List, .Locale, .Map, .Set, java.util.stream.Stream, jakarta.faces.FacesException, .FacesWrapper, jakarta.faces.component.UIViewRoot, jakarta.faces.context.FacesContext, jakarta.faces.view.ViewDeclarationLanguage

Provides a simple implementation of ViewHandler that can be subclassed by developers wishing to provide specialized behavior to an existing ViewHandler instance. The default implementation of all methods is to call through to the wrapped ViewHandler.

Usage: extend this class and push the implementation being wrapped to the constructor and use getWrapped to access the instance being wrapped.

Since
1.2

Field Summary

Modifier and TypeField and Description
private ViewHandler
Inherited from jakarta.faces.application.ViewHandler:
CHARACTER_ENCODING_KEYDEFAULT_FACELETS_SUFFIXDEFAULT_SUFFIXDEFAULT_SUFFIX_PARAM_NAMEFACELETS_BUFFER_SIZE_PARAM_NAMEFACELETS_DECORATORS_PARAM_NAMEFACELETS_LIBRARIES_PARAM_NAMEFACELETS_REFRESH_PERIOD_PARAM_NAMEFACELETS_SKIP_COMMENTS_PARAM_NAMEFACELETS_SUFFIX_PARAM_NAMEFACELETS_VIEW_MAPPINGS_PARAM_NAME

Constructor Summary

AccessConstructor and Description
public
ViewHandlerWrapper(ViewHandler
The implementation being wrapped.
wrapped
)

If this view handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor.

public
ViewHandlerWrapper()

Deprecated Use the other constructor taking the implementation being wrapped.

Method Summary

Modifier and TypeMethod and Description
public void
addProtectedView(String
the url-pattern to add.
urlPattern
)

Overrides jakarta.faces.application.ViewHandler.addProtectedView.

The default behavior of this method is to call ViewHandler#addProtectedView on the wrapped ViewHandler object.

public String
public Locale
calculateLocale(FacesContext
FacesContext for the current request
context
)

Implements abstract jakarta.faces.application.ViewHandler.calculateLocale.

The default behavior of this method is to call ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

public String
calculateRenderKitId(FacesContext
FacesContext for the current request
context
)

Implements abstract jakarta.faces.application.ViewHandler.calculateRenderKitId.

The default behavior of this method is to call ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

public UIViewRoot
createView(FacesContext
the Faces context.
context
,
String
the view id.
viewId
)

Implements abstract jakarta.faces.application.ViewHandler.createView.

The default behavior of this method is to call ViewHandler#createView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public String
deriveLogicalViewId(FacesContext
the FacesContext for this request
context
,
String
the viewId to derive,
requestViewId
)

Overrides jakarta.faces.application.ViewHandler.deriveLogicalViewId.

The default behavior of this method is to call ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public String
deriveViewId(FacesContext
the FacesContext for this request
context
,
String
the viewId to derive,
requestViewId
)

Overrides jakarta.faces.application.ViewHandler.deriveViewId.

The default behavior of this method is to call ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public String
getActionURL(FacesContext
FacesContext for this request
context
,
String
View identifier of the desired view
viewId
)

Implements abstract jakarta.faces.application.ViewHandler.getActionURL.

The default behavior of this method is to call ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public String
getBookmarkableURL(FacesContext
The FacesContext processing this request
context
,
String
The view identifier of the target page
viewId
,
Map<String, List<String>>
A mapping of parameter names to one or more values
parameters
,
boolean
A flag indicating whether view parameters should be encoded into this URL
includeViewParams
)

Overrides jakarta.faces.application.ViewHandler.getBookmarkableURL.

The default behavior of this method is to call ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object.

public Set<String>
public String
getRedirectURL(FacesContext
The FacesContext processing this request
context
,
String
The view identifier of the target page
viewId
,
Map<String, List<String>>
A mapping of parameter names to one or more values
parameters
,
boolean
A flag indicating whether view parameters should be encoded into this URL
includeViewParams
)

Overrides jakarta.faces.application.ViewHandler.getRedirectURL.

The default behavior of this method is to call ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object.

public String
getResourceURL(FacesContext
FacesContext for the current request
context
,
String
Resource path to convert to a URL
path
)

Implements abstract jakarta.faces.application.ViewHandler.getResourceURL.

The default behavior of this method is to call ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public ViewDeclarationLanguage
getViewDeclarationLanguage(FacesContext
the FacesContext for this request.
context
,
String
the logical view id, as returned from deriveLogicalViewId for which the ViewDeclarationLanguage should be returned.
viewId
)

Overrides jakarta.faces.application.ViewHandler.getViewDeclarationLanguage.

The default behavior of this method is to call ViewHandler#getViewDeclarationLanguage on the wrapped ViewHandler object.

public Stream<String>
getViews(FacesContext
The FacesContext for this request.
context
,
String
The initial path from which to start looking for view ids.
path
,
ViewVisitOption...
The options to influence the traversal. See ViewVisitOption for details on those.
options
)

Overrides jakarta.faces.application.ViewHandler.getViews.

The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, ViewVisitOption...) on the wrapped ViewHandler object.

public Stream<String>
getViews(FacesContext
The FacesContext for this request.
context
,
String
The initial path from which to start looking for view ids.
path
,
int
The absolute maximum depth of nested directories to visit counted from the root (/).
maxDepth
,
ViewVisitOption...
The options to influence the traversal. See ViewVisitOption for details on those.
options
)

Overrides jakarta.faces.application.ViewHandler.getViews.

The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...) on the wrapped ViewHandler object.

public String
getWebsocketURL(FacesContext
FacesContext for the current request.
context
,
String
The channel name of the websocket.
channel
)

Implements abstract jakarta.faces.application.ViewHandler.getWebsocketURL.

The default behavior of this method is to call ViewHandler#getWebsocketURL(FacesContext, String) on the wrapped ViewHandler object.

public ViewHandler
getWrapped()

Implements jakarta.faces.FacesWrapper.getWrapped.

A class that implements this interface uses this method to return an instance of the class being wrapped.

public void
initView(FacesContext
the Faces context.
context
)

Overrides jakarta.faces.application.ViewHandler.initView.

The default behavior of this method is to call ViewHandler#initView on the wrapped ViewHandler object.

public boolean
removeProtectedView(String
the url-pattern to remove.
urlPattern
)

Overrides jakarta.faces.application.ViewHandler.removeProtectedView.

The default behavior of this method is to call ViewHandler#removeProtectedView on the wrapped ViewHandler object.

public void
renderView(FacesContext
FacesContext for the current request
context
,
UIViewRoot
the view to render
viewToRender
)

Implements abstract jakarta.faces.application.ViewHandler.renderView.

The default behavior of this method is to call ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot) on the wrapped ViewHandler object.

public UIViewRoot
restoreView(FacesContext
FacesContext for the current request
context
,
String
the view identifier for the current request
viewId
)

Implements abstract jakarta.faces.application.ViewHandler.restoreView.

The default behavior of this method is to call ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

public void
writeState(FacesContext
FacesContext for the current request
context
)

Implements abstract jakarta.faces.application.ViewHandler.writeState.

The default behavior of this method is to call ViewHandler#writeState(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

Field Detail

wrappedback to summary
private ViewHandler wrapped

Constructor Detail

ViewHandlerWrapperback to summary
public ViewHandlerWrapper(ViewHandler wrapped)

If this view handler has been decorated, the implementation doing the decorating should push the implementation being wrapped to this constructor. The getWrapped() will then return the implementation being wrapped.

Parameters
wrapped:ViewHandler

The implementation being wrapped.

Since
2.3
ViewHandlerWrapperback to summary
public ViewHandlerWrapper()

Deprecated

Use the other constructor taking the implementation being wrapped.

Annotations
@Deprecated

Method Detail

addProtectedViewback to summary
public void addProtectedView(String urlPattern)

Overrides jakarta.faces.application.ViewHandler.addProtectedView.

The default behavior of this method is to call ViewHandler#addProtectedView on the wrapped ViewHandler object.

Parameters
urlPattern:String

Doc from jakarta.faces.application.ViewHandler.addProtectedView.

the url-pattern to add.

Annotations
@Override
Since
2.2
See Also
ViewHandler#addProtectedView
calculateCharacterEncodingback to summary
public String calculateCharacterEncoding(FacesContext context)

Overrides jakarta.faces.application.ViewHandler.calculateCharacterEncoding.

The default behavior of this method is to call ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.calculateCharacterEncoding.

the Faces context.

Returns:String

Doc from jakarta.faces.application.ViewHandler.calculateCharacterEncoding.

the character encoding, or null

Annotations
@Override
Since
1.2
See Also
ViewHandler#calculateCharacterEncoding(jakarta.faces.context.FacesContext)
calculateLocaleback to summary
public Locale calculateLocale(FacesContext context)

Implements abstract jakarta.faces.application.ViewHandler.calculateLocale.

The default behavior of this method is to call ViewHandler#calculateLocale(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.calculateLocale.

FacesContext for the current request

Returns:Locale

Doc from jakarta.faces.application.ViewHandler.calculateLocale.

the locale.

Annotations
@Override
Since
1.2
See Also
ViewHandler#calculateLocale(jakarta.faces.context.FacesContext)
calculateRenderKitIdback to summary
public String calculateRenderKitId(FacesContext context)

Implements abstract jakarta.faces.application.ViewHandler.calculateRenderKitId.

The default behavior of this method is to call ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.calculateRenderKitId.

FacesContext for the current request

Returns:String

Doc from jakarta.faces.application.ViewHandler.calculateRenderKitId.

the render kit id.

Annotations
@Override
Since
1.2
See Also
ViewHandler#calculateRenderKitId(jakarta.faces.context.FacesContext)
createViewback to summary
public UIViewRoot createView(FacesContext context, String viewId)

Implements abstract jakarta.faces.application.ViewHandler.createView.

The default behavior of this method is to call ViewHandler#createView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.createView.

the Faces context.

viewId:String

Doc from jakarta.faces.application.ViewHandler.createView.

the view id.

Returns:UIViewRoot

Doc from jakarta.faces.application.ViewHandler.createView.

the viewroot.

Annotations
@Override
Since
1.2
See Also
ViewHandler#createView(jakarta.faces.context.FacesContext, String)
deriveLogicalViewIdback to summary
public String deriveLogicalViewId(FacesContext context, String requestViewId)

Overrides jakarta.faces.application.ViewHandler.deriveLogicalViewId.

The default behavior of this method is to call ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.deriveLogicalViewId.

the FacesContext for this request

requestViewId:String

Doc from jakarta.faces.application.ViewHandler.deriveLogicalViewId.

the viewId to derive,

Returns:String

Doc from jakarta.faces.application.ViewHandler.deriveLogicalViewId.

the derived logical view id.

Annotations
@Override
Since
2.1
See Also
ViewHandler#deriveLogicalViewId(jakarta.faces.context.FacesContext, String)
deriveViewIdback to summary
public String deriveViewId(FacesContext context, String requestViewId)

Overrides jakarta.faces.application.ViewHandler.deriveViewId.

The default behavior of this method is to call ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.deriveViewId.

the FacesContext for this request

requestViewId:String

Doc from jakarta.faces.application.ViewHandler.deriveViewId.

the viewId to derive,

Returns:String

Doc from jakarta.faces.application.ViewHandler.deriveViewId.

the derived view id.

Annotations
@Override
Since
2.0
See Also
ViewHandler#deriveViewId(jakarta.faces.context.FacesContext, String)
getActionURLback to summary
public String getActionURL(FacesContext context, String viewId)

Implements abstract jakarta.faces.application.ViewHandler.getActionURL.

The default behavior of this method is to call ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getActionURL.

FacesContext for this request

viewId:String

Doc from jakarta.faces.application.ViewHandler.getActionURL.

View identifier of the desired view

Returns:String

Doc from jakarta.faces.application.ViewHandler.getActionURL.

the action url.

Annotations
@Override
Since
1.2
See Also
ViewHandler#getActionURL(jakarta.faces.context.FacesContext, String)
getBookmarkableURLback to summary
public String getBookmarkableURL(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams)

Overrides jakarta.faces.application.ViewHandler.getBookmarkableURL.

The default behavior of this method is to call ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getBookmarkableURL.

The FacesContext processing this request

viewId:String

Doc from jakarta.faces.application.ViewHandler.getBookmarkableURL.

The view identifier of the target page

parameters:Map<String, List<String>>

Doc from jakarta.faces.application.ViewHandler.getBookmarkableURL.

A mapping of parameter names to one or more values

includeViewParams:boolean

Doc from jakarta.faces.application.ViewHandler.getBookmarkableURL.

A flag indicating whether view parameters should be encoded into this URL

Returns:String

Doc from jakarta.faces.application.ViewHandler.getBookmarkableURL.

the bookmarkable URL.

Annotations
@Override
Since
2.0
See Also
ViewHandler#getBookmarkableURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean)
getProtectedViewsUnmodifiableback to summary
public Set<String> getProtectedViewsUnmodifiable()

Overrides jakarta.faces.application.ViewHandler.getProtectedViewsUnmodifiable.

The default behavior of this method is to call ViewHandler#getProtectedViewsUnmodifiable on the wrapped ViewHandler object.

Returns:Set<String>

Doc from jakarta.faces.application.ViewHandler.getProtectedViewsUnmodifiable.

the unmodifiable set of protected views.

Annotations
@Override
Since
2.2
See Also
ViewHandler#getProtectedViewsUnmodifiable
getRedirectURLback to summary
public String getRedirectURL(FacesContext context, String viewId, Map<String, List<String>> parameters, boolean includeViewParams)

Overrides jakarta.faces.application.ViewHandler.getRedirectURL.

The default behavior of this method is to call ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getRedirectURL.

The FacesContext processing this request

viewId:String

Doc from jakarta.faces.application.ViewHandler.getRedirectURL.

The view identifier of the target page

parameters:Map<String, List<String>>

Doc from jakarta.faces.application.ViewHandler.getRedirectURL.

A mapping of parameter names to one or more values

includeViewParams:boolean

Doc from jakarta.faces.application.ViewHandler.getRedirectURL.

A flag indicating whether view parameters should be encoded into this URL

Returns:String

Doc from jakarta.faces.application.ViewHandler.getRedirectURL.

the redirect URL.

Annotations
@Override
Since
2.0
See Also
ViewHandler#getRedirectURL(jakarta.faces.context.FacesContext, String, java.util.Map, boolean)
getResourceURLback to summary
public String getResourceURL(FacesContext context, String path)

Implements abstract jakarta.faces.application.ViewHandler.getResourceURL.

The default behavior of this method is to call ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getResourceURL.

FacesContext for the current request

path:String

Doc from jakarta.faces.application.ViewHandler.getResourceURL.

Resource path to convert to a URL

Returns:String

Doc from jakarta.faces.application.ViewHandler.getResourceURL.

the resource URL.

Annotations
@Override
Since
1.2
See Also
ViewHandler#getResourceURL(jakarta.faces.context.FacesContext, String)
getViewDeclarationLanguageback to summary
public ViewDeclarationLanguage getViewDeclarationLanguage(FacesContext context, String viewId)

Overrides jakarta.faces.application.ViewHandler.getViewDeclarationLanguage.

The default behavior of this method is to call ViewHandler#getViewDeclarationLanguage on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getViewDeclarationLanguage.

the FacesContext for this request.

viewId:String

Doc from jakarta.faces.application.ViewHandler.getViewDeclarationLanguage.

the logical view id, as returned from deriveLogicalViewId for which the ViewDeclarationLanguage should be returned.

Returns:ViewDeclarationLanguage

Doc from jakarta.faces.application.ViewHandler.getViewDeclarationLanguage.

the ViewDeclarationLanguage, or null.

Annotations
@Override
Since
2.0
getViewsback to summary
public Stream<String> getViews(FacesContext context, String path, ViewVisitOption... options)

Overrides jakarta.faces.application.ViewHandler.getViews.

The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, ViewVisitOption...) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getViews.

The FacesContext for this request.

path:String

Doc from jakarta.faces.application.ViewHandler.getViews.

The initial path from which to start looking for view ids.

options:ViewVisitOption[]

Doc from jakarta.faces.application.ViewHandler.getViews.

The options to influence the traversal. See ViewVisitOption for details on those.

Returns:Stream<String>

Doc from jakarta.faces.application.ViewHandler.getViews.

the Stream of view ids

Annotations
@Override
Since
2.3
getViewsback to summary
public Stream<String> getViews(FacesContext context, String path, int maxDepth, ViewVisitOption... options)

Overrides jakarta.faces.application.ViewHandler.getViews.

The default behavior of this method is to call ViewHandler#getViews(FacesContext, String, int, ViewVisitOption...) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getViews.

The FacesContext for this request.

path:String

Doc from jakarta.faces.application.ViewHandler.getViews.

The initial path from which to start looking for view ids.

maxDepth:int

Doc from jakarta.faces.application.ViewHandler.getViews.

The absolute maximum depth of nested directories to visit counted from the root (/).

options:ViewVisitOption[]

Doc from jakarta.faces.application.ViewHandler.getViews.

The options to influence the traversal. See ViewVisitOption for details on those.

Returns:Stream<String>

Doc from jakarta.faces.application.ViewHandler.getViews.

the Stream of view ids

Annotations
@Override
Since
2.3
getWebsocketURLback to summary
public String getWebsocketURL(FacesContext context, String channel)

Implements abstract jakarta.faces.application.ViewHandler.getWebsocketURL.

The default behavior of this method is to call ViewHandler#getWebsocketURL(FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.getWebsocketURL.

FacesContext for the current request.

channel:String

Doc from jakarta.faces.application.ViewHandler.getWebsocketURL.

The channel name of the websocket.

Returns:String

Doc from jakarta.faces.application.ViewHandler.getWebsocketURL.

the websocket URL.

Annotations
@Override
Since
2.3
See Also
ViewHandler#getWebsocketURL(FacesContext, String)
getWrappedback to summary
public ViewHandler getWrapped()

Implements jakarta.faces.FacesWrapper.getWrapped.

Doc from jakarta.faces.FacesWrapper.getWrapped.

A class that implements this interface uses this method to return an instance of the class being wrapped.

Returns:ViewHandler

the wrapped instance.

Annotations
@Override
initViewback to summary
public void initView(FacesContext context) throws FacesException

Overrides jakarta.faces.application.ViewHandler.initView.

The default behavior of this method is to call ViewHandler#initView on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.initView.

the Faces context.

Annotations
@Override
Exceptions
FacesException:

Doc from jakarta.faces.application.ViewHandler.initView.

if a problem occurs setting the encoding, such as the UnsupportedEncodingException thrown by the underlying Jakarta Servlet or Portlet technology when the encoding is not supported.

Since
1.2
See Also
ViewHandler#initView
removeProtectedViewback to summary
public boolean removeProtectedView(String urlPattern)

Overrides jakarta.faces.application.ViewHandler.removeProtectedView.

The default behavior of this method is to call ViewHandler#removeProtectedView on the wrapped ViewHandler object.

Parameters
urlPattern:String

Doc from jakarta.faces.application.ViewHandler.removeProtectedView.

the url-pattern to remove.

Returns:boolean

Doc from jakarta.faces.application.ViewHandler.removeProtectedView.

true if in the Set, false otherwise.

Annotations
@Override
Since
2.2
See Also
ViewHandler#removeProtectedView
renderViewback to summary
public void renderView(FacesContext context, UIViewRoot viewToRender) throws IOException, FacesException

Implements abstract jakarta.faces.application.ViewHandler.renderView.

The default behavior of this method is to call ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.renderView.

FacesContext for the current request

viewToRender:UIViewRoot

Doc from jakarta.faces.application.ViewHandler.renderView.

the view to render

Annotations
@Override
Exceptions
IOException:

Doc from jakarta.faces.application.ViewHandler.renderView.

if an input/output error occurs

FacesException:

Doc from jakarta.faces.application.ViewHandler.renderView.

if a Jakarta Servlet error occurs

Since
1.2
See Also
ViewHandler#renderView(jakarta.faces.context.FacesContext, jakarta.faces.component.UIViewRoot)
restoreViewback to summary
public UIViewRoot restoreView(FacesContext context, String viewId)

Implements abstract jakarta.faces.application.ViewHandler.restoreView.

The default behavior of this method is to call ViewHandler#restoreView(jakarta.faces.context.FacesContext, String) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.restoreView.

FacesContext for the current request

viewId:String

Doc from jakarta.faces.application.ViewHandler.restoreView.

the view identifier for the current request

Returns:UIViewRoot

Doc from jakarta.faces.application.ViewHandler.restoreView.

the restored view root, or null.

Annotations
@Override
Since
1.2
See Also
ViewHandler#restoreView(jakarta.faces.context.FacesContext, String)
writeStateback to summary
public void writeState(FacesContext context) throws IOException

Implements abstract jakarta.faces.application.ViewHandler.writeState.

The default behavior of this method is to call ViewHandler#writeState(jakarta.faces.context.FacesContext) on the wrapped ViewHandler object.

Parameters
context:FacesContext

Doc from jakarta.faces.application.ViewHandler.writeState.

FacesContext for the current request

Annotations
@Override
Exceptions
IOException:

Doc from jakarta.faces.application.ViewHandler.writeState.

if an input/output error occurs

Since
1.2
See Also
ViewHandler#writeState(jakarta.faces.context.FacesContext)