Skip navigation links
org.apache.myfaces.trinidad.util
Class LabeledFacesMessage
java.lang.Object
javax.faces.application.FacesMessage
org.apache.myfaces.trinidad.util.LabeledFacesMessage
- All Implemented Interfaces:
- Serializable
-
public class LabeledFacesMessage
- extends javax.faces.application.FacesMessage
Extension to FacesMessage which keeps track of the label on the component that generated the message.
- Version:
- $Name: $ ($Revision: /main/2 $) $Date: 2012/01/04 16:18:06 $
- See Also:
- Serialized Form
| Nested classes/interfaces inherited from class javax.faces.application.FacesMessage |
javax.faces.application.FacesMessage.Severity |
| Fields inherited from class javax.faces.application.FacesMessage |
FACES_MESSAGES, SEVERITY_ERROR, SEVERITY_FATAL, SEVERITY_INFO, SEVERITY_WARN, VALUES, VALUES_MAP |
| Method Summary |
Object |
getLabel()
Returns the label, which can be either a String or a ValueBinding. |
String |
getLabelAsString(javax.faces.context.FacesContext context)
Gets a string representation of the label. |
void |
setLabel(Object label)
Sets the label, which can be either a String or a ValueBinding. |
| Methods inherited from class javax.faces.application.FacesMessage |
getDetail, getSeverity, getSummary, isRendered, rendered, setDetail, setSeverity, setSummary |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
LabeledFacesMessage
public LabeledFacesMessage()
LabeledFacesMessage
public LabeledFacesMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
String detail)
- Creates a LabeledFacesMessage without a pre-set label.
- Parameters:
severity - the severity of the message
summary - the message summary
detail - the message detail
LabeledFacesMessage
public LabeledFacesMessage(javax.faces.application.FacesMessage.Severity severity,
String summary,
String detail,
Object label)
- Creates a LabeledFacesMessage with a label.
- Parameters:
severity - the severity of the message
summary - the message summary
detail - the message detail
label - the message label - either a String or a ValueBinding
getLabel
public Object getLabel()
- Returns the label, which can be either a String or a ValueBinding.
setLabel
public void setLabel(Object label)
- Sets the label, which can be either a String or a ValueBinding.
getLabelAsString
public String getLabelAsString(javax.faces.context.FacesContext context)
- Gets a string representation of the label. If the label is a ValueBinding, the expression is evaluated and the string value returned.
Skip navigation links
Copyright © 2001-2013 The Apache Software Foundation. All Rights Reserved.