Other Ways to Validate Input

The converters and validators validate simple syntax and semantic rules, but many applications require more complex input validation. For instance, in a flight reservation application, verifying seat availability on the selected flight and validating the credit card information require access to external systems. It’s common to defer this type of validation to the backend code, invoked through event handlers when all the simple tests succeed. We’ll look at event handlers in the next chapter.

Get JavaServer Faces now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.