Package com.sun.faces.application.view
Class ViewMetadataImpl
java.lang.Object
jakarta.faces.view.ViewMetadata
com.sun.faces.application.view.ViewMetadataImpl
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateMetadataView(FacesContext context) Creates a newUIViewRootcontaining only view parameter metadata.Get the view idMethods inherited from class jakarta.faces.view.ViewMetadata
getImportConstants, getViewActions, getViewParameters, hasMetadata
-
Constructor Details
-
ViewMetadataImpl
-
-
Method Details
-
getViewId
Description copied from class:ViewMetadataGet the view id
- Specified by:
getViewIdin classViewMetadata- Returns:
- the view ID for which this
ViewMetadatainstance was created - See Also:
-
createMetadataView
Description copied from class:ViewMetadataCreates a new
UIViewRootcontaining only view parameter metadata. The processing of building thisUIViewRootwith metadata should not cause any events to be published to the application. The implementation must callFacesContext.setProcessingEvents(boolean)passingfalseas the argument, at the beginning of the method, and passtrueto the same method at the end. The implementation must ensure that this happens regardless of ant exceptions that may be thrown.Take note a compliant implementation has to ensure that:
- the new UIViewRoot must be set as the FacesContext's viewRoot before applying the tag handlers, restoring the old FacesContext in a finally block.
- The contents of the current UIViewRoot's ViewMap must be copied to the ViewMap of the new UIViewRoot before applying the tag handlers.
- The
UIImportConstantsmust be processed after applying the tag handlers.
- Specified by:
createMetadataViewin classViewMetadata- Parameters:
context- theFacesContextfor the current request- Returns:
- a
UIViewRootcontaining only view parameter metadata (if any) - See Also:
-