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.  JavaServer Faces Technology

5.  Introduction to Facelets

6.  Expression Language

7.  Using JavaServer Faces Technology in Web Pages

8.  Using Converters, Listeners, and Validators

9.  Developing with JavaServer Faces Technology

10.  JavaServer Faces Technology: Advanced Concepts

11.  Using Ajax with JavaServer Faces Technology

12.  Composite Components: Advanced Topics and Example

13.  Creating Custom UI Components and Other Custom Objects

14.  Configuring JavaServer Faces Applications

15.  Java Servlet Technology

16.  Uploading Files with Java Servlet Technology

17.  Internationalizing and Localizing Web Applications

Part III Web Services

18.  Introduction to Web Services

19.  Building Web Services with JAX-WS

20.  Building RESTful Web Services with JAX-RS

21.  JAX-RS: Advanced Topics and Example

Part IV Enterprise Beans

22.  Enterprise Beans

23.  Getting Started with Enterprise Beans

24.  Running the Enterprise Bean Examples

25.  A Message-Driven Bean Example

26.  Using the Embedded Enterprise Bean Container

27.  Using Asynchronous Method Invocation in Session Beans

Part V Contexts and Dependency Injection for the Java EE Platform

28.  Introduction to Contexts and Dependency Injection for the Java EE Platform

29.  Running the Basic Contexts and Dependency Injection Examples

30.  Contexts and Dependency Injection for the Java EE Platform: Advanced Topics

31.  Running the Advanced Contexts and Dependency Injection Examples

Part VI Persistence

32.  Introduction to the Java Persistence API

33.  Running the Persistence Examples

34.  The Java Persistence Query Language

35.  Using the Criteria API to Create Queries

36.  Creating and Using String-Based Criteria Queries

37.  Controlling Concurrent Access to Entity Data with Locking

38.  Using a Second-Level Cache with Java Persistence API Applications

Part VII Security

39.  Introduction to Security in the Java EE Platform

40.  Getting Started Securing Web Applications

41.  Getting Started Securing Enterprise Applications

42.  Java EE Security: Advanced Topics

Part VIII Java EE Supporting Technologies

43.  Introduction to Java EE Supporting Technologies

44.  Transactions

45.  Resources and Resource Adapters

46.  The Resource Adapter Example

47.  Java Message Service Concepts

48.  Java Message Service Examples

49.  Bean Validation: Advanced Topics

50.  Using Java EE Interceptors

Part IX Case Studies

51.  Duke's Bookstore Case Study Example

52.  Duke's Tutoring Case Study Example

53.  Duke's Forest Case Study Example

Index

 

V

validating input
See Bean Validation
See validation model
validation
customizing, Creating Custom Constraints
entities, Validating Persistent Fields and Properties
groups, Grouping Constraints
localization, Localizing Validation Messages
messages, Customizing Validator Messages
ordering, Customizing Group Validation Order
validation model
User Interface Component Model
Validation Model
Validation Model
Validation Model
referencing a method that performs validation, Referencing a Method That Performs Validation
validator attribute
Using Text Components
Referencing a Managed Bean Method
Referencing a Method That Performs Validation
Writing a Method to Perform Validation
Validator implementation
Validation Model
Using a Custom Validator
Validator interface
Writing Managed Bean Methods
Writing a Method to Perform Validation
Validation Model
custom validator tags, Specifying a Custom Tag
implementing, Implementing the Validator Interface
See also validators
writing a managed bean method to perform validation, Writing a Method to Perform Validation
Validator implementation classes
Using the Standard Validators
Validation Model
DoubleRangeValidator class
Using Core Tags
Using the Standard Validators
LengthValidator class
Using Core Tags
Using the Standard Validators
LongRangeValidator class
Using Core Tags
Using the Standard Validators
Using LongRangeValidator
validators
Restore View Phase
User Interface Component Model
custom validators
Using Core Tags
Using a Custom Validator
default, Using Default Validators
registering, Validating a Component’s Value
validator tags
composite components, Validating Composite Component Values
f:validator tag
Validation Model
Specifying a Custom Tag
validateDoubleRange tag, Using the Standard Validators
validateLength tag, Using the Standard Validators
validateLongRange tag
Using the Standard Validators
Using LongRangeValidator
value binding
acceptable types of component values, Writing Properties Bound to Component Values
component instances to bean properties
See component binding
component values and instances to managed bean properties, Binding Component Values and Instances to Managed Bean Properties
component values to implicit objects, Binding a Component Value to an Implicit Object
component values to managed bean properties, Binding a Component Value to a Property
properties, Writing Properties Bound to Component Values
value attribute
Writing Bean Properties
Configuring Model Data
Binding Component Values and Instances to Managed Bean Properties
Binding a Component Value to a Property
value-binding expressions, Binding Component Values and Instances to Managed Bean Properties
value expressions
UIData Properties
Enabling Component Properties to Accept Expressions
Binding a Component Instance to a Bean Property
value-change events
Event and Listener Model
Event and Listener Model
Implementing an Event Listener
f:valueChangeListener tag, When to Use a Custom Component
processValueChangeEvent method, Writing a Method to Handle a Value-Change Event
processValueChange(ValueChangeEvent) method, Implementing Value-Change Listeners
referencing methods that handle value-change events, Referencing a Method That Handles a Value-Change Event
type attribute, Registering a Value-Change Listener on a Component
ValueChangeEvent class
Registering a Value-Change Listener on a Component
Implementing an Event Listener
Implementing Value-Change Listeners
valueChangeListener attribute
Using Text Components
Referencing a Managed Bean Method
Writing a Method to Handle a Value-Change Event
ValueChangeListener class
Registering a Value-Change Listener on a Component
Writing a Method to Handle a Value-Change Event
Implementing an Event Listener
ValueChangeListener implementation, Implementing Value-Change Listeners
valueChangeListener tag
Using Core Tags
Registering a Value-Change Listener on a Component
writing a managed bean method to handle value-change events, Writing a Method to Handle a Value-Change Event
value expressions, Using the EL to Reference Managed Beans
ValueExpression class, Using the EL to Reference Managed Beans
Variant class, JAX-RS, Runtime Content Negotiation

W

W3C
Java API for XML Processing
Building Web Services with JAX-WS
Further Information about JAX-WS
WAR files, Packaging Applications
web applications
Getting Started with Web Applications
Web Modules: The hello1 Example
configuring
Web Applications
Configuring Web Applications: The hello2 Example
deployment descriptors, Web Applications
document roots, Web Modules: The hello1 Example
establishing the locale, Establishing the Locale
internationalizing and localizing, Internationalizing and Localizing Web Applications
maintaining state across requests, Maintaining Client State
parsing and formatting localized dates and numbers, Date and Number Formatting
presentation-oriented, Getting Started with Web Applications
providing localized messages, Providing Localized Messages and Labels
retrieving localized messages, Retrieving Localized Messages
securing, Getting Started Securing Web Applications
service-oriented, Getting Started with Web Applications
setting the resource bundle, Setting the Resource Bundle
specifying context parameters, To Add a Context Parameter Using NetBeans IDE
specifying welcome files, Declaring Welcome Files
web beans, See Contexts and Dependency Injection (CDI) for the Java EE platform
web clients
Web Clients
Getting Started with Web Applications
examples, Creating the converter Web Client
web components
Web Components
Web Applications
applets bundled with, Web Components
concurrent access to shared resources, Controlling Concurrent Access to Shared Resources
forwarding to other web components, Transferring Control to Another Web Component
including other web resources, Including Other Resources in the Response
invoking other web resources, Invoking Other Web Resources
JMS and, Using the JMS API with Application Clients and Web Components
mapping exceptions to error screens, Mapping Errors to Error Screens
mapping filters to, Specifying Filter Mappings
scope objects, Using Scope Objects
securing, Getting Started Securing Web Applications
sharing information, Sharing Information
transactions, Transactions in Web Components
types, Web Components
utility classes bundled with, Web Components
web context, Accessing the Web Context
web container
Container Types
Web Applications
loading and initializing servlets, Servlet Lifecycle
mapping URLs to web components, Mapping URLs to Web Components
web modules
Packaging Applications
Web Modules: The hello1 Example
deploying, Deploying a Web Module
dynamic reloading, Dynamic Reloading
undeploying, Undeploying Web Modules
updating, To Update a Deployed Web Module
viewing deployed, Listing Deployed Web Modules
web pages
XHTML
Creating the Web Page
What Is Facelets?
web-resource-collection element, Specifying a Web Resource Collection
web resource collections
Specifying Security Constraints
Specifying a Web Resource Collection
web resources, Web Modules: The hello1 Example
Facelets, Web Resources
mapping filters to, Specifying Filter Mappings
unprotected, Specifying a Web Resource Collection
web services, Web Services Support
declaring references to, Declaring a Reference to a Web Service
endpoint implementation classes, The Web Service Endpoint Implementation Class
See also enterprise beans, web services
examples
Creating a Simple Web Service and Clients with JAX-WS
A Web Service Example: helloservice
introduction, What Are Web Services?
JAX-RS compared to JAX-WS, Types of Web Services
web.xml file
Web Modules: The hello1 Example
Basic Requirements of a JavaServer Faces Application
Using Deployment Descriptors for Declarative Security
Securing Enterprise Beans
welcome files, specifying, Declaring Welcome Files
work flows, When to Use Session Beans
writing managed bean methods, Writing Managed Bean Methods
for handling action events, Writing a Method to Handle an Action Event
for handling value-change events, Writing a Method to Handle a Value-Change Event
for performing navigation, Writing a Method to Handle Navigation
for performing validation, Writing a Method to Perform Validation
writing managed bean properties
converters, Writing Properties Bound to Converters, Listeners, or Validators
listeners, Writing Properties Bound to Converters, Listeners, or Validators
validators, Writing Properties Bound to Converters, Listeners, or Validators
WSDL
WSDL Standard Format
Types of Web Services
Building Web Services with JAX-WS
Further Information about JAX-WS
wsgen tool, GlassFish Server Tools
wsimport tool, GlassFish Server Tools