Name

FacesMessage

Synopsis

This class is the base class for all specific message subclasses. The messages created by a JSF implementation contain localized text for the Locale returned by the UIViewRoot getLocale() method from the resource bundle with the base name returned by the Application getMessageBundle() or the bundle with the base name defined by the FACES_MESSAGES constant, searched in that order.

Synopsis

Class name:

javax.faces.application.FacesMessage

Extends:

None

Implements:

java.io.Serializable

Fields

public static final String FACES_MESSAGES

The base name for the standard messages resource bundle: javax.faces.Messages.

public static final FacesMessage.Serverity SEVERITY_ERROR

The severity level value for error messages.

public static final FacesMessage.Serverity SEVERITY_FATAL

The severity level value for fatal error messages.

public static final FacesMessage.Serverity SEVERITY_INFO

The severity level value for informational messages.

public static final FacesMessage.Serverity SEVERITY_WARN

The severity level value for warning messages.

Constructors

public FacesMessage()

Creates an empty instance.

public FacesMessage(FacesMessage.Severity severity, String summary, String detail)

Creates an instance with the specified severity, summary, and detail texts.

public FacesMessage(String summary)

Creates an instance with the specified summary text.

public FacesMessage(String summary, String detail)

Creates an instance with the specified summary and detail texts.

Methods ...

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.