javax.faces.event

Class PhaseId

  • All Implemented Interfaces:
    Comparable

    public class PhaseId
    extends Object
    implements Comparable

    Typesafe enumeration of the legal values that may be returned by the getPhaseId() method of the FacesEvent interface.

    • Field Detail

      • ANY_PHASE

        public static final PhaseId ANY_PHASE

        Identifier that indicates an interest in events, no matter which request processing phase is being performed.

      • RESTORE_VIEW

        public static final PhaseId RESTORE_VIEW

        Identifier that indicates an interest in events queued for the Restore View phase of the request processing lifecycle.

      • APPLY_REQUEST_VALUES

        public static final PhaseId APPLY_REQUEST_VALUES

        Identifier that indicates an interest in events queued for the Apply Request Values phase of the request processing lifecycle.

      • PROCESS_VALIDATIONS

        public static final PhaseId PROCESS_VALIDATIONS

        Identifier that indicates an interest in events queued for the Process Validations phase of the request processing lifecycle.

      • UPDATE_MODEL_VALUES

        public static final PhaseId UPDATE_MODEL_VALUES

        Identifier that indicates an interest in events queued for the Update Model Values phase of the request processing lifecycle.

      • INVOKE_APPLICATION

        public static final PhaseId INVOKE_APPLICATION

        Identifier that indicates an interest in events queued for the Invoke Application phase of the request processing lifecycle.

      • RENDER_RESPONSE

        public static final PhaseId RENDER_RESPONSE

        Identifier for the Render Response phase of the request processing lifecycle.

      • VALUES

        public static final List<PhaseId> VALUES

        List of valid PhaseId instances, in ascending order of their ordinal value.

    • Method Detail

      • compareTo

        public int compareTo(Object other)

        Compare this PhaseId instance to the specified one. Returns a negative integer, zero, or a positive integer if this object is less than, equal to, or greater than the specified object.

        Specified by:
        compareTo in interface Comparable
        Parameters:
        other - The other object to be compared to
      • getOrdinal

        public int getOrdinal()

        Return the ordinal value of this PhaseId instance.

      • getName

        public String getName()

        Return the name of this phase.

        Since:
        2.2
      • phaseIdValueOf

        public static PhaseId phaseIdValueOf(String phase)

        Return a PhaseId representation of the arcument phase.

        Parameters:
        phase - the String for which the corresponding PhaseId should be returned.
        Throws:
        NullPointerException - if argument phase is null.
        FacesException - if the PhaseId corresponding to the argument phase cannot be found.
        Since:
        2.2

Document created the 11/06/2005, last modified the 18/08/2025
Source of the printed document:https://www.gaudry.be/en/java-api-javaee-rf-javax/faces/event/PhaseId.html

The infobrol is a personal site whose content is my sole responsibility. The text is available under CreativeCommons license (BY-NC-SA). More info on the terms of use and the author.

References

  1. View the html document Language of the document:fr Manuel PHP : https://docs.oracle.com/en/java/, Class PhaseId

These references and links indicate documents consulted during the writing of this page, or which may provide additional information, but the authors of these sources can not be held responsible for the content of this page.
The author of this site is solely responsible for the way in which the various concepts, and the freedoms that are taken with the reference works, are presented here. Remember that you must cross multiple source information to reduce the risk of errors.