public abstract class ViewMetadata extends Object
ViewMetadata
is
reponsible for extracting and providing view parameter metadata from
VDL views. Because ViewDeclarationLanguage.getViewMetadata(javax.faces.context.FacesContext, java.lang.String)
is required to return null
for JSP views and
non-null
for views authored in Facelets for JSF 2, this
specification only applys to Facelets for JSF 2. Constructor and Description |
---|
ViewMetadata() |
Modifier and Type | Method and Description |
---|---|
abstract UIViewRoot |
createMetadataView(FacesContext context)
Creates a new |
abstract String |
getViewId()
|
static Collection<UIViewParameter> |
getViewParameters(UIViewRoot root)
Utility method to extract view
metadata from the provided |
public abstract String getViewId()
ViewMetadata
instance
was createdpublic abstract UIViewRoot createMetadataView(FacesContext context)
Creates a new UIViewRoot
containing only view parameter metadata. The processing of
building this UIViewRoot
with metadata should not
cause any events to be published to the application. The
implementation must call FacesContext#setProcessingEvents
passing false
as the argument, at the beginning of
the method, and pass true
to the same method at the
end. The implementation must ensure that this happens regardless
of ant exceptions that may be thrown.
context
- the FacesContext
for the current requestUIViewRoot
containing only view parameter metadata
(if any)public static Collection<UIViewParameter> getViewParameters(UIViewRoot root)
Utility method to extract view
metadata from the provided UIViewRoot
.
root
- the UIViewRoot
from which the metadata will
be extracted fromCollection
of UIViewParameter
instances. If the view has no metadata, the collection will be
empty.Copyright © 2018 JBoss by Red Hat. All rights reserved.