站内搜索: 请输入搜索关键词
当前页面: 在线文档首页 > JBoss Seam 1.1.1 正式版英文参考手册

Chapter 18. Seam JSF controls - JBoss Seam 1.1.1 正式版英文参考手册

Chapter 18. Seam JSF controls

Seam includes a number of JSF controls that are useful for working with Seam. These are intended to complement the built-in JSF controls, and controls from other third-party libraries. We recommend the Ajax4JSF and ADF faces (now Trinidad) tag libraries for use with Seam. We do not recommend the use of the Tomahawk tag library.

<s:validate>

Validate a JSF input field against the bound property using Hibernate Validator.

<s:validateAll>

Validate all child JSF input fields against the bound propertys using Hibernate Validator.

<s:formattedText>

Output Seam Text.

<s:convertDateTime>

Perform date or time conversions in the Seam timezone.

<s:convertEnum>

Assigns an enum converter to the current component. This is primarily useful for radio button and dropdown controls.

<s:enumItem>

Creates a SelectItem from an enum value.

  • enumValue — the string representation of the enum value.

  • label — the label to be used when rendering the SelectItem.

<s:decorate>

"Decorate" a JSF input field when validation fails.

<s:message>

"Decorate" a JSF input field with the validation error message.

<s:span>

Render a HTML <span>.

<s:div>

Render a HTML <div>.

<s:cache>

Cache the rendered page fragment using JBoss Cache. Note that <s:cache> actually uses the instance of JBoss Cache managed by the built-in pojoCache component.

  • key — the key to cache rendered content, often a value expression. For example, if we were caching a page fragment that displays a document, we might use key="Document-#{document.id}".

  • enabled — a value expression that determines if the cache should be used.

  • region — a JBoss Cache node to use (different nodes can have different expiry policies).

<s:link>

A link that supports invocation of an action with control over conversation propagation. Does not submit the form.

  • value — the label.

  • action — a method binding that specified the action listener.

  • view — the JSF view id to link to.

  • fragment — the fragment identifier to link to.

  • disabled — is the link disabled?

  • propagation — determines the conversation propagation style: begin, join, nest, none or end.

  • pageflow — a pageflow definition to begin. (This is only useful when propagation="begin" or propagation="join".)

<s:button>

A button that supports invocation of an action with control over conversation propagation. Does not submit the form.

  • value — the label.

  • action — a method binding that specified the action listener.

  • view — the JSF view id to link to.

  • fragment — the fragment identifier to link to.

  • disabled — is the link disabled?

  • propagation — determines the conversation propagation style: begin, join, nest, none or end.

  • pageflow — a pageflow definition to begin. (This is only useful when propagation="begin" or propagation="join".)

<s:selectDate>

Displays a dynamic date picker component that selects a date for the specified input field. The body of the selectDate element should contain HTML elements, such as text or an image, that prompt the user to click to display the date picker.

  • for — The id of the input field that the date picker will insert the selected date into.

<s:conversationPropagation>

Customize the conversation propagation for a command link or button (or similar JSF control). Facelets only.

  • propagation — determines the conversation propagation style: begin, join, nest, none or end.

  • pageflow — a pageflow definition to begin. (This is only useful when propagation="begin" or propagation="join".)

<s:conversationId>

Add the conversation id to an output link (or similar JSF control). Facelets only.

<s:taskId>

Add the task id to an output link (or similar JSF control), when the task is available via #{task}. Facelets only.