Developing Web 2.0 applications
with JavaServerFaces
and Dreamweaver
>> Just Became Easier
Documentation
Search
  1. Introduction
  2. Getting Started
  3. Seam Concepts
  4. Seam Component Types
  5. Design View Support
  6. Code View Support
  7. Tag Object Toolbars
  8. Property Inspectors
  9. Seam Tag Reference
Seam Tag Library
  s:button
  s:cache
  s:conversationId
  s:conversationName
  s:conversationPropagation
  s:convertAtomicBoolean
  s:convertAtomicInteger
  s:convertAtomicLong
  s:convertDateTime
  s:convertEntity
  s:convertEnum
Selected s:decorate
  s:defaultAction
  s:div
  s:download
  s:enumItem
  s:fileUpload
  s:formattedText
  s:fragment
  s:graphicImage
  s:label
  s:link
  s:message
  s:remote
  s:resource
  s:selectItems
  s:selection
  s:span
  s:taskId
  s:token
  s:transformImageBlur
  s:transformImageSize
  s:transformImageType
  s:validate
  s:validateAll
  s:validateEquality
  s:validateFormattedText
If you like this documentation, please take a look at my book:

9. Seam Tag Reference

Documentation > Seam > Seam Tag Reference > Seam Tag Library > s:decorate

s:decorate

<p>The <s:decorate> tag surrounds a JSF input component and displays a message when validation fails.</p>

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 Expression
 
The value-binding expression linking this component tag to a backing bean property.
element Text
 
the element to enclose the template used to decorate the input field. By default, the template is enclosed with a div element.
enclose Text
 
if true, the template used to decorate the input field is enclosed by the element specified with the "element" attribute. By default this is a div element.
for Text
 
The unique identifier of the input component to decorate.
id Text
 
The unique identifier value for this component. The value must be unique within the closest naming container.
rendered Text
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.
style Text
 
CSS style(s) is/are to be applied when this component is rendered
styleClass Text
 
Corresponds to the HTML class attribute
template Text
 
XHTML template to use to decorate the input field