An Overview of the JSF Core Tags

   

The core library is the poor stepchild of the HTML library the former exists entirely to support the latter. The core tags are listed in Table 4-1.

Table 4-1. JSF Core Tags

Tag

Description

view

Creates the top-level view

subview

Creates a subview of a view

facet

Adds a facet to a component

attribute

Adds an attribute (key/value) to a component

param

Adds a parameter to a component

actionListener

Adds an action listener to a component

valueChangeListener

Adds a valuechange listener to a component

converter

Adds an arbitrary converter to a component

convertDateTime

Adds a datetime converter to a component

convertNumber

Adds a number converter to a component

validator

Adds a validator to a component

validateDoubleRange

Validates a double range for a component's value

validateLength

Validates the length of a component's value

validateLongRange

Validates a long range for a component's value

loadBundle

Loads a resource bundle, stores properties as a Map

selectitems

Specifies items for a select one or select many component

selectitem

Specifies an item for a select one or select many component

verbatim

Adds markup to a JSF page


Most of the core tags represent objects you add to components:

  • Attributes

  • Listeners

  • Converters

  • Validators

  • Facets

  • Parameters

  • Select items

The core library also contains tags for defining views and subviews, loading resource bundles, and adding arbitrary text to a page.

All of the core tags are discussed at length elsewhere in this book.

NOTE

graphics/note_icon.gif

All tag attributes, except for var and id, accept value reference expressions. The majority of those expressions represent value bindings; a handful represent method bindings.




core JavaServer Faces
Core JavaServer Faces
ISBN: 0131463055
EAN: 2147483647
Year: 2003
Pages: 121

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net