| com.flexive.faces.messages.FxFacesMessage
All known Subclasses: com.flexive.faces.messages.FxFacesMsgWarn, com.flexive.faces.messages.FxFacesMsgErr, com.flexive.faces.messages.FxFacesMsgInfo,
FxFacesMessage | public class FxFacesMessage extends FacesMessage implements Serializable(Code) | | A Flexive Faces Message.
This class is extends the FacesMessages by adding access to the form and client id that the message belongs to.
author: Gregor Schober (gregor.schober@flexive.com), UCS - unique computing solutions gmbh (http://www.ucs.at) |
FxFacesMessage | public FxFacesMessage(FacesMessage msg, String component)(Code) | | Constructor.
Parameters: msg - the original faces message Parameters: component - the client id, or null for a global message. The client id may conain the form (JSF style), eg'myForm:myComponentId' |
FxFacesMessage | public FxFacesMessage(Severity severity, String summaryKey, Object... summaryParams)(Code) | | Constructor.
Parameters: severity - the severity Parameters: summaryKey - the summary key Parameters: summaryParams - the summary parameters |
FxFacesMessage | public FxFacesMessage(Throwable exc, Severity severity, String summaryKey, Object... summaryParams)(Code) | | Constructor.
Parameters: exc - the Exception Parameters: severity - the severity Parameters: summaryKey - the summary key Parameters: summaryParams - the summary parameters |
FxFacesMessage | public FxFacesMessage(Throwable exc, Severity severity)(Code) | | Constructor.
Parameters: exc - the Exception Parameters: severity - the severity |
addToContext | public void addToContext()(Code) | | Adds the message to the context.
A message will only be available to the client (UI) when it was added to the context
|
addToContext | public void addToContext(String clientId)(Code) | | Adds the message to the context.
A message will only be available to the client (UI) when it was added to the context
Parameters: clientId - the client id of the message |
getClientId | public String getClientId()(Code) | | Returns the client id (may be a empty string).
the client id |
getDetailForJavascript | public String getDetailForJavascript()(Code) | | Returns the detail message for use in javascripts.
the detail message for use in javascripts |
getForm | public String getForm()(Code) | | The form the message belongs to, or a empty string for a global message.
The form the message belong to, or a empty string for a global message |
getHasDetail | public boolean getHasDetail()(Code) | | Returns true if the message has a detail information.
true if the message has a detail information |
getId | public String getId()(Code) | | The client id that the message belongs (without the jsf form prefix) to, or a empty string for a global message.
The client id that the message belongs to, or a empty string for a global message |
hashCode | public int hashCode()(Code) | | |
setId | public void setId(String id)(Code) | | Sets the client id that the message belongs to.
Parameters: id - the client id to set |
setLocalizedDetail | public void setLocalizedDetail(String key, Object... params)(Code) | | Sets the message detail.
Parameters: key - The detail text key Parameters: params - the message parameters |
setLocalizedSummary | final public void setLocalizedSummary(String key, Object... params)(Code) | | Sets the summary
Parameters: key - the message key Parameters: params - the message parameters |
|
|