JSF 2 Deep Dive: Templates and Composite Components
An in-depth look at two of JSF 2's most compelling features.
JSF 2 has two new features that make it easy to implement highly maintainable, flexible, and extensible user interfaces: Templates and Composite Components.
This session shows you how to implement JSF 2 views by encapsulating common view functionality in templates, and then defining your views using those templates. Encapsulating common view functionality in templates makes it trivial to create new views: you just specify how your view differs from the common functionality in the view's template.
You will also learn how to create Composite Components: components that you implement with a simple Facelet--without writing any Java code, and without specifying XML configuration. Composite components are arguably the single most important feature in JSF 2 because they make it easy to implement custom JSF components.
About David Geary
David Geary is the president of Clarity Training, Inc. (corewebdevelopment.com), where he teaches developers to implement web applications using JavaServer Faces (JSF) and the Google Web Toolkit (GWT).
A prominent author, speaker, and consultant, David holds a unique qualification as a Java expert: He wrote the best-selling books on both Java component frameworks: Swing and JavaServer Faces. David's Graphic Java Swing was the best-selling Swing book, and is one of the best-selling Java books of all-time, and Core JSF, which David wrote with Cay Horstman, is the best-selling book on JavaServer Faces.
David was one of a handful of experts on the JSF 1.0 Expert Group (EG) that actively defined the standard Java-based web application framework, and David is currently on the JSF 2 Expert Group, helping to vastly improve JSF in version 2.
Besides serving on the JSF and JSTL Expert Groups, David has contributed to open-source projects and he has written questions for two of Sun's Certification Exams: Web Developer Certification and JavaServer Faces Certification. He invented the Struts Template library which was the precursor to Tiles, a popular framework for composing web pages from JSP fragments, was the 2nd Struts committer and contributed to the Apache Shale project.
David has spoken at more than 100 NFJS symposiums since 2003, and he also speaks at other conferences such as TheServerSide Java Symposium, JavaOne, JavaPolis, and JAOO. David has taught at Java University for the past three years, and is a three-time JavaOne rock star.More About David »