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
Selected s:cache
  s:conversationId
  s:conversationName
  s:conversationPropagation
  s:convertAtomicBoolean
  s:convertAtomicInteger
  s:convertAtomicLong
  s:convertDateTime
  s:convertEntity
  s:convertEnum
  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:cache

s:cache

<p>The <s:cache> tag instructs the Seam framework to cache a rendered page fragment internally.</p>

Example

<s:cache key="Invoice-#{invoice.id}" region="invoiceLineItemsCacheRegion">
   <h:dataTable value="#{invoice.lineItemList}" var="lineItem">
      <h:column>
         <f:facet name="header">Quantity</f:facet>
         #{lineItem.quantity}
      </h:column>
      <h:column>
         <f:facet name="header">Description</f:facet>
         #{lineItem.description}
      </h:column>
      <h:column>
         <f:facet name="header">Price</f:facet>
         #{lineItem.price}
      </h:column>
      <h:column>
         <f:facet name="header">Total</f:facet>
         #{lineItem.total}
      </h:column>
   </h:dataTable>
</s:cache> 

Tag Attributes

binding Expression
 
The value-binding expression linking this component tag to a backing bean property.
cacheProvider Text
 
The cache provider to use, only needed if you install alter the default cache provider in an application where multiple cache providers are in use
enabled Text
 
A value-binding expression that evaluates to a Boolean value.
id Text
 
The unique identifier value for this component. The value must be unique within the closest naming container.
key Text
Required
The key used to store and retrieve the fragment from the cache.
region Text
Required
A JBoss Cache node, possibly with a custom expiration policy. (The use of JBoss Cache is managed internally by the Seam framework.)
rendered Text
 
A value-binding expression that evaluates to a Boolean condition indicating if this component should be rendered.