O'Reilly logo

Java EE 6 Development with NetBeans 7 by David R. Heffelfinger

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

Composite components

A very nice JSF 2.0 feature is the ability to easily write custom JSF components. With JSF 2, creating a custom component involves little more than creating the markup for it, with no Java code or configuration needed. Since custom components are typically composed of other JSF components, they are referred to as composite components.

We can generate a composite component by clicking on File | New, selecting the JavaServer Faces category and the JSF Composite Component file type.

Composite components

After clicking on Next >, we can specify the file name, project, and folder for our custom component.

To take advantage of JSF 2.0's automatic resource ...

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