10. Seam Tag Reference
Contents > Seam Tag Reference > s:decorate
s:decorate |
|
The s:decorate tag surrounds a JSF input component and displays a message when validation fails.
Example:
<s:validateAll>
<s:decorate>
<h:inputText id="username" value="#{userBean.username}" required="#{true}" maxlength="10" />
<h:commandButton />
<h:message for="username" styleClass="error" />
</s:decorate>
</s:validateAll>
|
Tag Attributes
| binding |
String |
| |
| The value-binding expression linking this component tag to a backing bean property. |
| for |
String |
| |
| The unique identifier of the input component to decorate. |
| id |
String |
| |
| The unique identifier value for this component. The value must be unique within the closest naming container. |
| rendered |
String |
| |
| A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered. |
|