javax.faces.application
Interface Message

All Known Implementing Classes:
MessageImpl

public interface Message

Message represents a single validation (or other) message, which is typically associated with a particular component in the component tree.


Field Summary
static int SEVERITY_ERROR
          Message severity level indicating that an error has occurred.
static int SEVERITY_FATAL
          Message severity level indicating that a serious error has occurred.
static int SEVERITY_INFO
          Message severity level indicating an informational message rather than an error.
static int SEVERITY_WARN
          Message severity level indicating that an error might have occurred.
 
Method Summary
 java.lang.String getDetail()
          Return the localized detail text for this Message (if any).
 int getSeverity()
          Return the severity level of this Message.
 java.lang.String getSummary()
          Return the localized summary text for this Message.
 

Field Detail

SEVERITY_FATAL

public static final int SEVERITY_FATAL

Message severity level indicating that a serious error has occurred.

See Also:
Constant Field Values

SEVERITY_ERROR

public static final int SEVERITY_ERROR

Message severity level indicating that an error has occurred.

See Also:
Constant Field Values

SEVERITY_WARN

public static final int SEVERITY_WARN

Message severity level indicating that an error might have occurred.

See Also:
Constant Field Values

SEVERITY_INFO

public static final int SEVERITY_INFO

Message severity level indicating an informational message rather than an error.

See Also:
Constant Field Values
Method Detail

getDetail

public java.lang.String getDetail()

Return the localized detail text for this Message (if any). This should be additional text that can help the user understand the context of the problem, and offer suggestions for approaches to correcting it.


getSeverity

public int getSeverity()

Return the severity level of this Message.


getSummary

public java.lang.String getSummary()

Return the localized summary text for this Message. This should be the text that would normally be displayed to a user to identify the problem that needs to be corrected.