10.12.2012 Views

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

The Java EE 5 Tutorial (PDF) - Oracle Software Downloads

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Using the CoreTags<br />

<strong>The</strong> tags included in the <strong>Java</strong>Server Faces core tag library are used to perform core actions that<br />

are independent of a particular render kit. <strong>The</strong>se tags are listed in Table 11–1.<br />

TABLE 11–1 <strong>The</strong> jsf_core Tags<br />

Tag Categories Tags Functions<br />

Event-handling<br />

tags<br />

Attribute<br />

configuration tag<br />

Data conversion<br />

tags<br />

actionListener Registers an action listener on a parent component<br />

phaseListener Registers a PhaseListener instance on a UIViewRoot<br />

component<br />

setPropertyActionListener Registers a special action listener whose sole purpose is<br />

to push a value into a backing bean when a form is<br />

submitted<br />

valueChangeListener Registers a value-change listener on a parent<br />

component<br />

attribute Adds configurable attributes to a parent component<br />

converter Registers an arbitrary converter on the parent<br />

component<br />

convertDateTime Registers a DateTime converter instance on the parent<br />

component<br />

convertNumber Registers a Number converter instance on the parent<br />

component<br />

Facet tag facet Signifies a nested component that has a special<br />

relationship to its enclosing tag<br />

Localization tag loadBundle Specifies a ResourceBundle that is exposed as a Map<br />

Parameter<br />

substitution tag<br />

Tags for<br />

representing<br />

items in a list<br />

param Substitutes parameters into a MessageFormat instance<br />

and adds query string name-value pairs to a URL<br />

selectItem Represents one item in a list of items in a UISelectOne<br />

or UISelectMany component<br />

selectItems Represents a set of items in a UISelectOne or<br />

UISelectMany component<br />

Using the CoreTags<br />

Container tag subview Contains all <strong>Java</strong>Server Faces tags in a page that is<br />

included in another JSP page containing <strong>Java</strong>Server<br />

Faces tags<br />

Chapter 11 • Using <strong>Java</strong>Server FacesTechnology in JSP Pages 323

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!