Adding a Phase Listener

The phase-listener element contains the fully qualified class name of the concrete PhaseListener implementation class that will be registered on the Lifecycle.

To add a phase listener:

  1. Select faces-config.xml in the Project Explorer of the J2EE perspective.

    The JSF Application Configuration editor opens.

  2. Select the Other tab of the editor.

    The Other page appears.

  3. Expand the Phase Listener section.

  4. Click Add.

    The Find Type dialog box appears.

  5. Type the first letter of the type you want to use in the Select a type field.

    A list of available types beginning with the letter you typed appears in the Matching types list.

  6. Select the type that you want to use and click OK.

    The phase listener is added to the list.


Related concepts


Related reference


Faces Config Editor

Related tasks

Tutorial