O'Reilly logo

Seam Framework: Experience the Evolution of Java™ EE, Second Edition by Thomas Heute, Jacob Orshalick, Michael Juntao Yuan

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

12 Validating Input Data

A key value proposition of Seam is the unification of EJB3 and JSF component models. Through the unified components, we can use EJB3 entity beans to back data fields in JSF forms, as well as use EJB3 session beans as JSF UI event handlers. But Seam does much more than that. Seam enables us to develop data components that have UI-related “behaviors.” For instance, entity beans can have validators that behave like JSF validators.

In this chapter, we cover the Seam-enhanced end-to-end validators that take advantage of Hibernate validator annotations on entity beans as well as Seam UI tags (see Section 3.2). We refactor the stateful Hello World example to show how to use this Seam feature. The new application ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required