public class MessageUtils extends Object
Constructor and Description |
---|
MessageUtils() |
Modifier and Type | Method and Description |
---|---|
static FacesMessage |
createError(FacesContext ctx,
String messageId)
Creates a new faces error message with a summary and detail
derived from the appropriate message bundle, using the specified key.
|
static FacesMessage |
createError(FacesContext ctx,
String messageId,
Object[] args)
Creates a new faces error message with a summary and detail
derived from the appropriate message bundle, using the specified key.
|
public static FacesMessage createError(FacesContext ctx, String messageId)
ctx
- Current context.messageId
- Message key.public static FacesMessage createError(FacesContext ctx, String messageId, Object[] args)
ctx
- Current context.messageId
- Message key.args
- (optional) Message args.