Document Information
Preface
Part I Introduction
1. Overview
2. Using the Tutorial Examples
Part II The Web Tier
3. Getting Started with Web Applications
4. JavaServerTM Faces Technology
5. Introduction to Facelets
6. Unified Expression Language
7. Using JavaServerTM Faces Technology in Web Pages
Setting Up a Page
Adding Components to a Page Using HTML Tags
Common Component Tag Attributes
The id Attribute
The immediate Attribute
The rendered Attribute
The style and styleClass Attributes
The value and binding Attributes
Adding HTML Head and Body Tags
Adding a Form Component
Using Text Components
Rendering a Text Field With the inputText Tag
Rendering a Password Field With the inputSecret Tag
Rendering a Label With the outputLabel Tag
Rendering a Hyperlink With the h:outputLink Tag
Displaying a Formatted Message With the h:outputFormat Tag
Using Command Components for Performing Actions and Navigation
Rendering a Button With the h:commandButton Tag
Rendering a Hyperlink With the h:commandLink Tag
Adding Graphics and Images With the h:graphicImage Tag
Laying Out Components With the Panel Component
Displaying Components for Selecting One Value
Displaying a Check Box Using the h:selectBooleanCheckbox Tag
Displaying a Menu Using the h:selectOneMenu Tag
Rendering Components for Selecting Multiple Values
Using The SelectItem and SelectItems Components
Using the f:selectItems Tag
Using the f:selectItem Tag
Using Data-Bound Table Components
Displaying Error Messages With the h:message and h:messages Tags
Creating Bookmarkable URLs with h:button and h:link Tags
Using View Parameters
Resource Relocation using h:output Tags
8. Using Converters, Listeners and Validators
9. Developing With JavaServerTM Faces Technology
10. Java Servlet Technology
Part III Web Services
11. Introduction to Web Services
12. Building Web Services with JAX-WS
13. Building RESTful Web Services with JAX-RS and Jersey
Part IV Enterprise Beans
14. Enterprise Beans
15. Getting Started with Enterprise Beans
16. Running the Enterprise Bean Examples
Part V Contexts and Dependency Injection for the JavaTM EE Platform
17. Introduction to Contexts and Dependency Injection for the JavaTM EE Platform
18. Running the Basic Contexts and Dependency Injection Examples
Part VI Persistence
19. Introduction to the Java Persistence API
20. Running the Persistence Examples
21. The Java Persistence Query Language
22. Creating Queries Using the Criteria API
Part VII Security
23. Introduction to Security in the Java EE Platform
24. Getting Started Securing Enterprise Applications
25. Getting Started Securing Web Applications
Part VIII JavaTM EE Supporting Technologies
26. Introduction to JavaTM EE Supporting Technologies
27. Transactions
28. Resource Connections
Index
|
|
Using Core Tags
The tags included in the JavaServer Faces core tag library are used to
perform core actions that are not performed by HTML tags. Commonly used core
tags are listed in Table 7-5 along with the functions they perform. Table 7-5 The Core TagsTag Categories |
Tags |
Functions |
Event-handling
tags |
f:actionListener |
Adds an action listener to a parent component |
f:phaseListener |
Adds a PhaseListener
to a page |
f:setPropertyActionListener |
Registers a special action listener whose sole purpose is to
push a value into a backing bean when a form is submitted |
f:valueChangeListener |
Adds a
value-change listener to a parent component |
Attribute configuration tag |
f:attribute |
Adds configurable attributes to a
parent component |
Data conversion tags |
f:converter |
Adds an arbitrary converter to the parent component |
f:convertDateTime |
Adds
a DateTime converter instance to the parent component |
f:convertNumber |
Adds a Number converter instance to
the parent component |
Facet tag |
f:facet |
Adds a nested component that has a special
relationship to its enclosing tag |
f:metadata |
Registers a facet on a parent component |
Localization tag |
f:loadBundle |
Specifies a
ResourceBundle that is exposed as a Map |
Parameter substitution tag |
f:param |
Substitutes parameters into a MessageFormat
instance and adds query string name-value pairs to a URL |
Tags for representing items
in a list |
f:selectItem |
Represents one item in a list of items in a SelectOne
or SelectMany component |
f:selectItems |
Represents a set of items in a SelectOne or SelectMany
component |
Validator tags |
f:validateDoubleRange |
Adds a DoubleRangeValidator to a component |
f:validateLength |
Adds a LengthValidator to a component |
f:validateLongRange |
Adds a LongRangeValidator to a
component |
f:validator |
Adds a custom validator to a component |
f:validateRegEx |
Adds a RegExValidator instance to a
component |
f:validateBean |
Delegates the validation of a local value to a BeanValidator instance |
f:validateRequired |
Enforces the
presence of a value in a component |
Ajax tag |
f:ajax |
Associates Ajax action to
a single or group of components based on placement |
Event tag |
f:event |
Allows installing ComponentSystemEventListener
on a component |
These tags, which are used in conjunction with component tags, are explained in
other sections of this tutorial. Table 7-6 lists the sections that explain how
to use specific core tags. Table 7-6 Where the Core Tags Are Explained
The material in The Java EE 6 Tutorial, Volume I is copyright-protected and may not be published in other works without express written permission from Sun Microsystems.
|