Top Description Fields Constructors Methods
com.sun.faces.application.view

public abstract Class ViewHandlingStrategy

extends ViewDeclarationLanguage
Class Inheritance
Known Direct Subclasses
com.sun.faces.application.view.FaceletViewHandlingStrategy, com.sun.faces.application.view.JspViewHandlingStrategy
Static Imports
com.sun.faces.util.Util.getFacesMapping, .Util.getStateManager, .Util.isPrefixMapped, .Util.notNull, java.util.logging.Level.FINE, javax.faces.component.UIViewRoot.COMPONENT_TYPE

This represents how a particular page description language is to be rendered/restored.

Field Summary

Modifier and TypeField and Description
protected ApplicationAssociate
private static final Logger
protected WebConfiguration
Inherited from javax.faces.view.ViewDeclarationLanguage:
FACELETS_VIEW_DECLARATION_LANGUAGE_IDJSP_VIEW_DECLARATION_LANGUAGE_ID

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public UIViewRoot
createView(FacesContext
the FacesContext for this request.
ctx
,
String
the identifier of an artifact that contains the VDL syntax that describes this view.
viewId
)

Implements abstract javax.faces.view.ViewDeclarationLanguage.createView.

Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId.

public abstract boolean

Returns:

true if this ViewHandlingStrategy handles the the view type represented by viewId
handlesViewId
(String
the view ID
viewId
)

public UIViewRoot
restoreView(FacesContext
the FacesContext for this request.
ctx
,
String
the identifier for a previously rendered view.
viewId
)

Implements abstract javax.faces.view.ViewDeclarationLanguage.restoreView.

Restore a UIViewRoot from a previously created view.

Inherited from javax.faces.view.ViewDeclarationLanguage:
buildViewcalculateResourceLibraryContractscreateComponentgetComponentMetadatagetIdgetScriptComponentResourcegetStateManagementStrategygetViewMetadatagetViewsgetViewsrenderViewretargetAttachedObjectsretargetMethodExpressionsviewExists

Field Detail

associateback to summary
protected ApplicationAssociate associate
loggerback to summary
private static final Logger logger
webConfigback to summary
protected WebConfiguration webConfig

Constructor Detail

ViewHandlingStrategyback to summary
public ViewHandlingStrategy()

Method Detail

createViewback to summary
public UIViewRoot createView(FacesContext ctx, String viewId)

Implements abstract javax.faces.view.ViewDeclarationLanguage.createView.

Doc from javax.faces.view.ViewDeclarationLanguage.createView.

Create a UIViewRoot from the VDL contained in the artifact referenced by the argument viewId. See section JSF.7.7.2 for the specification of the default implementation.

Parameters
ctx:FacesContext

the FacesContext for this request.

viewId:String

the identifier of an artifact that contains the VDL syntax that describes this view.

Returns:UIViewRoot

the newly created view root

Annotations
@Override
See Also
ViewDeclarationLanguage#createView(javax.faces.context.FacesContext, String)
handlesViewIdback to summary
public abstract boolean handlesViewId(String viewId)
Parameters
viewId:String

the view ID

Returns:boolean

true if this ViewHandlingStrategy handles the the view type represented by viewId

restoreViewback to summary
public UIViewRoot restoreView(FacesContext ctx, String viewId)

Implements abstract javax.faces.view.ViewDeclarationLanguage.restoreView.

Doc from javax.faces.view.ViewDeclarationLanguage.restoreView.

Restore a UIViewRoot from a previously created view. See section JSF.7.7.2 for the specification of the default implementation.

Parameters
ctx:FacesContext

the FacesContext for this request.

viewId:String

the identifier for a previously rendered view.

Returns:UIViewRoot

the restored view

Annotations
@Override
See Also
ViewDeclarationLanguage#restoreView(javax.faces.context.FacesContext, String)