|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object javax.faces.view.ViewMetadata
public abstract class ViewMetadata
ViewMetadata
is
reponsible for extracting and providing view parameter metadata from
VDL views. Because ViewDeclarationLanguage#getViewMetadata
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 Summary | |
---|---|
ViewMetadata()
|
Method Summary | |
---|---|
abstract UIViewRoot |
createMetadataView(FacesContext context)
Creates a new |
abstract java.lang.String |
getViewId()
|
static java.util.Collection<UIViewParameter> |
getViewParameters(UIViewRoot root)
Utility method to extract view
metadata from the provided |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ViewMetadata()
Method Detail |
---|
public abstract java.lang.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 request
UIViewRoot
containing only view parameter metadata
(if any)public static java.util.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 from
Collection
of UIViewParameter
instances. If the view has no metadata, the collection will be
empty.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Copyright © 2009, 2010, Oracle Corporation and/or its affiliates. All Rights Reserved. Use is subject to license terms.
Generated on 4-June-2010 04:34