ViewMetadata is reponsible for extracting and providing view parameter metadata from VDL views. Because
ViewDeclarationLanguage#getViewMetadata is required to return null for Jakarta Server Pages
views and non-null for views authored in Facelets for Jakarta Faces 2, this specification only
applies to Facelets for Jakarta Faces 2.
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public abstract UIViewRoot | Returns: aUIViewRoot containing only view parameter metadata (if any)the context)FacesContext for the current request
Creates a new |
| public static Collection | Returns: ACollection of UIImportConstants instances. If the view has no metadata, the collection
will be empty.The root)UIViewRoot from which the metadata will be extracted.
Utility method to extract view metadata from the provided |
| private static <C extends UIComponent> List | |
| private static Optional | |
| public static Collection | Returns: aCollection of UIViewAction instances. If the view has no metadata, the collection will
be empty.the root)UIViewRoot from which the metadata will be extracted.
Utility method to extract view metadata from the provided |
| public abstract String | |
| public static Collection | Returns: aCollection of UIViewParameter instances. If the view has no metadata, the collection
will be empty.the root)UIViewRoot from which the metadata will be extracted.
Utility method to extract view metadata from the provided |
| public static boolean | Returns: true if the view has metadata, false otherwise.the root)UIViewRoot from which the metadata will be extracted from
Utility method to determine if the the provided |
| ViewMetadata | back to summary |
|---|---|
| public ViewMetadata() | |
| createMetadataView | back to summary |
|---|---|
| public abstract UIViewRoot createMetadataView(FacesContext context)
Creates a new Take note a compliant implementation has to ensure that:
| |
| getImportConstants | back to summary |
|---|---|
| public static Collection
Utility method to extract view metadata from the provided
| |
| getMetadataChildren | back to summary |
|---|---|
private static <C extends UIComponent> List
| |
| getMetadataFacet | back to summary |
|---|---|
| private static Optional | |
| getViewActions | back to summary |
|---|---|
| public static Collection
Utility method to extract view metadata from the provided
| |
| getViewId | back to summary |
|---|---|
| public abstract String getViewId() Get the view id
| |
| getViewParameters | back to summary |
|---|---|
| public static Collection
Utility method to extract view metadata from the provided
| |
| hasMetadata | back to summary |
|---|---|
| public static boolean hasMetadata(UIViewRoot root)
Utility method to determine if the the provided
| |