Class PostConstructViewMapEvent

All Implemented Interfaces:
Serializable

public class PostConstructViewMapEvent extends ComponentSystemEvent

This event must be published by a call to {jakarta.faces.application.Application#publishEvent} when the view map is first created. This must happen on the first time a call is made to UIViewRoot.getViewMap() on a UIViewRoot instance. The source for this event is the UIViewRoot.

Since:
2.0
See Also:
  • Constructor Details

    • PostConstructViewMapEvent

      public PostConstructViewMapEvent(UIViewRoot root)

      Instantiate a new PostConstructViewMapEvent that indicates the argument root was just associated with its view map.

      Parameters:
      root - the UIViewRoot for which a view map has just been created.
      Throws:
      IllegalArgumentException - if the argument is null.
    • PostConstructViewMapEvent

      public PostConstructViewMapEvent(FacesContext facesContext, UIViewRoot root)

      Instantiate a new PostConstructViewMapEvent that indicates the argument root was just associated with its view map.

      Parameters:
      facesContext - the Faces context.
      root - the UIViewRoot for which a view map has just been created.
      Throws:
      IllegalArgumentException - if the argument is null.