Documentation

Search 

Contents

  1. Introduction
  2. Getting Started
  3. Seam Concepts
  4. Component Types
  5. Design View Support
  6. Code View Support
  7. Tag Object Toolbars
  8. Property Inspectors
Selected 9. Seam Tag Reference

10. Seam Tag Reference

Contents > Seam Tag Reference > s:message

s:message

The s:message tag renders a Faces message in the view.

Example:

<h:inputText id="username" required="#{true}" value="#{userBean.user.username}" errorStyle="color:red" />
<s:message />

HTML Output

<input type="text" id="form:username" name="form:username" value="" />
<span style="color:red">Value is required.</span>

Tag Attributes

binding String
 
The value-binding expression linking this component tag to a backing bean property.
dir String
 
The dir attribute is a standard HTML attribute that overrides the default text directionality for this component. The values accepted for this component are "LTR" (left-to-right) and "RTL" (right-to-left).
errorClass String
 
The errorClass attribute sets the CSS style class to apply to a message with a severity level of "ERROR".
errorStyle String
 
The errorStyle attribute sets the CSS style or styles to apply to a message with a severity level of "ERROR".
fatalClass String
 
The fatalClass attribute sets the CSS style class to apply to a message with a severity level of "FATAL".
fatalStyle String
 
The fatalStyle attribute sets the CSS style or styles to apply to a message with a severity level of "FATAL".
id String
 
The unique identifier value for this component. The value must be unique within the closest naming container.
infoClass String
 
The infoClass attribute sets the CSS style class to apply to a message with a severity level of "INFO".
infoStyle String
 
The infoStyle attribute sets the CSS style or styles to apply to a message with a severity level of "INFO".
lang String
 
The lang attribute is a standard HTML attribute that sets the code describing the language to be used in the markup generated by this component.
onclick String
 
The onclick attribute sets the JavaScript code to execute when the mouse pointer is clicked over this element.
ondblclick String
 
The ondblclick attribute sets the JavaScript code to execute when the mouse pointer is double-clicked over this element.
onkeydown String
 
The onkeydown attribute sets the JavaScript code to execute when a key is pressed down over this element.
onkeypress String
 
The onkeypress attribute sets the JavaScript code to execute when a key is pressed and released over this element.
onkeyup String
 
The onkeyup attribute sets the JavaScript code to execute when a key is released over this element.
onmousedown String
 
The onmousedown attribute sets the JavaScript code to execute when the mouse pointer is pressed down over this element.
onmousemove String
 
The onmousemove attribute sets the JavaScript code to execute when the mouse pointer is moved within this element.
onmouseout String
 
The onmouseout attribute sets the JavaScript code to execute when the mouse pointer is moved away from this element.
onmouseover String
 
The onmouseover attribute sets the JavaScript code to execute when the mouse pointer is moved onto this element.
onmouseup String
 
The onmouseup attribute sets the JavaScript code to execute when the mouse button is released over this element.
rendered String
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
showDetail String
 
The showDetail attribute is a boolean flag indicating whether the detail part of the message should be included. The default value is "true".
showSummary String
 
The showSummary attribute is a boolean flag indicating whether the summary part of the message should be included. The default value is "false".
style String
 
The style attribute sets the CSS style definition to be applied to this component when it is rendered.
styleClass String
 
The styleClass attribute sets the CSS class to apply to this component when it is rendered.
title String
 
The title attribute is a standard HTML attribute that sets the tooltip text to display for the rendered component.
tooltip String
 
The tooltip attribute is a boolean flag indicating whether the detail part of the message should be displayed as a tooltip.
warnClass String
 
The warnClass attribute sets the CSS style class to apply to a message with a severity level of "WARN".
warnStyle String
 
The warnStyle attribute sets the CSS style or styles to apply to a message with a severity level of "WARN".