O'Reilly logo

JSF 1.2 Components by Ian Hlavats

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

Decorating the UI to improve form validation

The Seam framework, as the name suggests, is an excellent tool for integrating different technologies together. One of the technologies that Seam supports very well is Facelets. We saw how to use the Facelets<ui:decorate> tag to markup a section of our JSF page to be "decorated" by a template defined in another page. For example, we can define a simple template that surrounds our content with an HTML<div> element that has a particular style applied to it. The benefit of this approach is that common UI structures can be defined in one place and reused more easily.

Seam provides the<s:decorate> tag to surround user interface fields for validation purposes in the same way. In fact, the<s:decorate> tag ...

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