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
All Methods Instance Methods Concrete Methods Modifier and Type Method Description UIViewRootcreateMetadataView(FacesContext context)Creates a newUIViewRootcontaining only view parameter metadata.StringgetViewId()Get the view id-
Methods inherited from class jakarta.faces.view.ViewMetadata
getImportConstants, getViewActions, getViewParameters, hasMetadata
-
-
-
-
Constructor Detail
-
ViewMetadataImpl
public ViewMetadataImpl(String viewId)
-
-
Method Detail
-
getViewId
public String 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:
ViewMetadata.getViewId()
-
createMetadataView
public UIViewRoot createMetadataView(FacesContext context)
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:
ViewMetadata.createMetadataView(jakarta.faces.context.FacesContext)
-
-