Package com.sun.faces.application.view
Class ViewMetadataImpl
java.lang.Object
jakarta.faces.view.ViewMetadata
com.sun.faces.application.view.ViewMetadataImpl
public class ViewMetadataImpl extends ViewMetadata
- See Also:
ViewMetadata
-
Constructor Summary
Constructors Constructor Description ViewMetadataImpl(String viewId)
-
Method Summary
Modifier and Type Method Description UIViewRoot
createMetadataView(FacesContext context)
Creates a newUIViewRoot
containing only view parameter metadata.String
getViewId()
Get the view idMethods inherited from class jakarta.faces.view.ViewMetadata
getImportConstants, getViewActions, getViewParameters, hasMetadata
-
Constructor Details
-
Method Details
-
getViewId
Description copied from class:ViewMetadata
Get the view id
- Specified by:
getViewId
in classViewMetadata
- Returns:
- the view ID for which this
ViewMetadata
instance was created - See Also:
ViewMetadata.getViewId()
-
createMetadataView
Description copied from class:ViewMetadata
Creates a new
UIViewRoot
containing only view parameter metadata. The processing of building thisUIViewRoot
with metadata should not cause any events to be published to the application. The implementation must callFacesContext.setProcessingEvents(boolean)
passingfalse
as the argument, at the beginning of the method, and passtrue
to 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
UIImportConstants
must be processed after applying the tag handlers.
- Specified by:
createMetadataView
in classViewMetadata
- Parameters:
context
- theFacesContext
for the current request- Returns:
- a
UIViewRoot
containing only view parameter metadata (if any) - See Also:
ViewMetadata.createMetadataView(jakarta.faces.context.FacesContext)
-