Sample: JSF and SDO

This gallery offers a set of JavaServer Faces (JSF) samples that demonstrate common Web application tasks. They also demonstrate how Service Data Objects (SDO) are used to access Relational Records and Relational Record Lists. Each sample is independent. They do not need to be viewed in a specific order. These samples assume that you have a basic understanding of JSF and SDO technologies and are familiar with developing Web applications. If you are new to these technologies, you may want to complete the

"Display dynamic information on Web pages with JavaServer Faces" tutorial before using these samples.

Time required: 5 minutes

Setup Instructions

Import sample

To use this sample, install the SDO tools. To install the SDO tools, in Installation Manager, click

Modify. In the Feature list, click

IBM Rational Application Developer for WebSphere Software 7.5.0 | Web Development Tools. Select

SDO - Domino and JDBC mediators then click

Modify.

Click the Setup instructions link for detailed instructions on setup and configuration. Click the Import the sample link to start importing the sample into the workspace.

Sample Type Description
Adding Choices to Selection Lists - Combo and List Boxes Demonstrates how to add choices to a selection list and storing the values selected by a user.
Passing Data Using Request and Session Scopes Demonstrates how to pass data between pages using scope variables and a managed Java™ bean in session scope.
Passing Data Using Command-Hyperlinks and Output-Links Demonstrates how to pass data between pages using parameters of a command-hyperlink and an output-link.
Performing Actions on a Data Table Row Demonstrates how to perform actions on a single row of a data table using the row action control and command-hyperlinks.
Performing Actions on Multiple Data Table Rows Demonstrates how to select records and perform actions on multiple rows of a data table using the row select controls. This sample deletes and updates records from Java bean and relational record lists.
Updating Records Using Data Table Row Edit and Concurrency Control Demonstrates how to use the row edit control of the data table and concurrency control.
Adding a Database Record Using Auto-Key Generation Demonstrates how to use JSF combined with SDO to automatically generate a primary key when a new record is added to a database.
Using an SDO Query to Filter Data Demonstrates how to perform a SDO query and return the filtered results to the same page.
Sorting Information in a Data Table Demonstrates how to sort a data table in ascending or descending order by clicking on the column headings.
Creating Expandable and Collapsible Data Groupings Demonstrates the use of data table row categorization to group records into expandable and collapsible menus.
Validating Input Demonstrates the use of standard and custom input validation.
Using Value-Changed Event Handling Demonstrates how to handle value-changed events and auto-submission of forms. This sample populates one combo box based on the selection in another.
Using Script Collector Events Demonstrates use of the script collector usage events.
Using Cascading Style Sheets Demonstrates the use of cascading style sheets to format and change the appearance of a JSF application.
Using Input and Keyboard Assistance Demonstrates the use of input and keyboard assistance.
Using JSTL Expression Language Demonstrates the use of JSTL expression language in your JSF page.
Displaying Records Using Data Table Pagers A gallery of data table pagers used to reduce the number of records displayed on a page.

To use this sample, have an application server installed and configured. To verify that a server runtime environment is available, click

Window | Preferences, expand

Server, and then click

Installed Runtimes. You can use this pane to add, remove, or edit installed server runtime definitions. You can also download and install support for a new server.

The following application servers have been tested to work with this sample:


Feedback