| Modifier and Type | Method and Description |
|---|---|
void |
add()
Add the current message as a global message.
|
void |
add(String clientId)
Add the current message for the given client ID.
|
ConverterException |
asConverterException()
Returns the so far built message as a
ConverterException. |
ValidatorException |
asValidatorException()
Returns the so far built message as a
ValidatorException. |
Messages.Message |
detail(String detail,
Object... params)
Set the detail message of the current message.
|
Messages.Message |
error()
Set the severity of the current message to ERROR.
|
Messages.Message |
fatal()
Set the severity of the current message to FATAL.
|
Messages.Message |
flash()
Make the current message a flash message.
|
FacesMessage |
get()
Returns the so far built message.
|
void |
throwConverterException()
Throws the so far built message as a
ConverterException. |
void |
throwValidatorException()
Throws the so far built message as a
ValidatorException. |
Messages.Message |
warn()
Set the severity of the current message to WARN.
|
public Messages.Message detail(String detail, Object... params)
detail - The detail message to be set on the current message.params - The detail message format parameters, if any.Messages.Message instance for further building.FacesMessage.setDetail(String)public Messages.Message warn()
Messages.Message instance for further building.FacesMessage.setSeverity(javax.faces.application.FacesMessage.Severity)public Messages.Message error()
Messages.Message instance for further building.FacesMessage.setSeverity(javax.faces.application.FacesMessage.Severity)public Messages.Message fatal()
Messages.Message instance for further building.FacesMessage.setSeverity(javax.faces.application.FacesMessage.Severity)public Messages.Message flash()
Messages.Message instance for further building.Flash.setKeepMessages(boolean)public void add(String clientId)
clientId - The client ID to add the current message for.FacesContext.addMessage(String, FacesMessage)public void add()
public FacesMessage get()
public ConverterException asConverterException()
ConverterException.ConverterException.public ValidatorException asValidatorException()
ValidatorException.ValidatorException.public void throwConverterException()
ConverterException.ConverterExceptionpublic void throwValidatorException()
ValidatorException.ValidatorExceptionCopyright © 2012–2020 OmniFaces. All rights reserved.