Part 4. Sinking the business requirements
Seam goes well beyond being simply a web application framework. It gives you support to cover all the business requirements, which you’ll learn to appreciate in this part of the book.
Chapter 11 shows how quickly you can weave security into a Seam application. A single method on a POJO gives you both authentication and role-based authorization. You use annotations and the EL to define restrictions. Going deeper, you’ll get a crash course in the Drools rule engine and use it to create fine-grained, contextual restrictions. Finally, you’ll learn to keep out pesky spammers and bots using CAPTCHA, a nearly zero-effort integration.
Though critical, security can often be a dry topic. But everyone loves Ajax! Chapter 12 highlights the two flavors of Ajax in a Seam application. First you’ll study Ajax-enabled UI components, which honor the JSF life cycle and let you avoid the JavaScript and CSS nightmares that typically come with adopting Ajax. If you prefer the low-level control, the JavaScript Remoting library lets you interact directly with server-side components from JavaScript, stepping outside of the JSF life cycle. The latter approach opens the door to alternative front ends such as GWT.