An overview of Seam JSF controls

In this recipe, you will see a short overview of a set of Seam controls that are intended to complement the built-in JSF controls, and controls from other third-party libraries.

Getting ready

To use these controls you need to define the s namespace in your page as follows:

<html xmlns="http://www.w3.org/1999/xhtml"
xmlns:s="http://jboss.com/products/seam/taglib">

Note

For JSP pages, modify it accordingly.

How to do it...

Keep in mind that we are presenting only a few Seam JSF controls, but just enough to make you curious to explore here:

http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/controls.html

Control

Description

<s:validate>

A non-visual control, which validates a JSF input field against the bound property using Hibernate Validator.

<s:convertEnum>

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

<s:selectItems>

Creates a List<SelectItem> from a List, Set, DataModel or Array.

<s:cache>

Caches 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.

<s:conversationPropagation>

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

See also

More details and the complete list of Seam controls for JSF are at:

http://docs.jboss.org/seam/1.2.1.GA/reference/en/html/controls.html

..................Content has been hidden....................

You can't read the all page of ebook, please click here login for view all page.
Reset