previous | index

Using Backing Beans to Validate Among Multiple Components

In this date validating application, validation depends on values in multiple fields.

This uses a backing bean containing all of the input components of the form.

JSF binds form components to beans with the binding attribute, as used in index.jsp.

Note that the application waits to perform validation until after the day and month fields have been accepted.

Here is the bean that accesses the components: BackingBean.java


previous | index