Home > Articles > Programming > Java

  • Print
  • + Share This
This chapter is from the book

This chapter is from the book

Using the Core Tags

The tags included in the JavaServer Faces core tag library are used to perform core actions that are independent of a particular render kit. These tags are listed in Table 18-1.

Table 18-1. The jsf_core Tags

Tag Categories

Tags

Functions

Event-handling tags

actionListener

Registers an action listener on a parent component

valueChangeListener

Registers a value-change listener on a parent component

 

Attribute configuration tag

attribute

Adds configurable attributes to a parent component

Data conversion tags

converter

Registers an arbitrary converter on the parent component

convertDateTime

Registers a DateTime converter instance on the parent component

 

convertNumber

Registers a Number converter instance on the parent component

 

Facet tag

facet

Signifies a nested component that has a special relationship to its enclosing tag

Localization tag

loadBundle

Specifies a ResourceBundle that is exposed as a Map

Parameter substitution tag

param

Substitutes parameters into a MessageFormat instance and adds query string name-value pairs to a URL

Tags for representing items in a list

selectItem

Represents one item in a list of items in a UISelectOne or UISelectMany component

selectItems

Represents a set of items in a UISelectOne or UISelectMany component

 

Container tag

subview

Contains all JavaServer Faces tags in a page that is included in another JSP page containing JavaServer Faces tags

Validator tags

validateDoubleRange

Registers a DoubleRangeValidator on a component

validateLength

Registers a LengthValidator on a component

 

validateLongRange

Registers a LongRangeValidator on a component

 

validator

Registers a custom validator on a component

 

Output tag

verbatim

Generates a UIOutput component that gets its content from the body of this tag

Container for form tags

view

Encloses all JavaServer Faces tags on the page

These tags are used in conjunction with component tags and are therefore explained in other sections of this tutorial. Table 18-2 lists the sections that explain how to use specific jsf_core tags.

Table 18-2. Where the jsf_core Tags Are Explained

Tags

Where Explained

Event-handling tags

Registering Listeners on Components (page 710)

Data conversion tags

Using the Standard Converters (page 705)

facet

The UIData Component (page 686) and The UIPanel Component (page 694)

loadBundle

Using Localized Messages (page 703)

param

Using the outputFormat Tag (page 693) and

selectItem and selectItems

The UISelectItem, UISelectItems, and UISelectItemGroup Components (page 700)

subview

Setting Up a Page (page 676)

verbatim

Using the outputLink Tag (page 692)

view

Setting Up a Page (page 676)

Validator tags

Using the Standard Validators (page 712) and Creating a Custom Validator (page 750)

  • + Share This
  • 🔖 Save To Your Account