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.
|
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.
|
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()
Copyright © 2012–2015 OmniFaces. All rights reserved.