Free Sample
+ Collection

Apache MyFaces Trinidad 1.2: A Practical Guide

David Thomas

Develop JSF web applications with Trinidad and Seam
RRP $29.99
RRP $49.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781847196088
Paperback292 pages

About This Book

  • Develop rich client web applications using the most powerful integration of modern web technologies
  • Covers working with Seam security, internationalization using Seam, and more
  • Get well-versed in developing key areas of web applications
  • A step-by-step approach that will help you strengthen your understanding of all the major concepts

Who This Book Is For

This book is written for Java developers who are beginners at JSF and experienced web developers who are looking for an introduction into the world of open source JSF technology.

Table of Contents

Chapter 1: Introducing Trinidad
Overview of Trinidad
General key criteria for the choosing of Trinidad
Seamidad! Ease JSF development with Seam
Chapter 2: Structuring and Building Pages with Facelets
Facelet page composition—templating with Facelets
Facelet composition components
Using JSTL for further refinement
Chapter 3: Most Wanted Tags and Tag Attributes
Component library structure
Standard tag attributes
Standard tag attributes in tag groups
Chapter 4: Rendering Pages Partially
Tag-based PPR
Java-side PPR using Trinidad's RequestContext
Chapter 5: Web Application Groundwork
Trinidad's Dialog Framework
Internationalization (I18n)
Setting up the application with Seam-gen
Chapter 6: Building a Panel-based Content
Where the Trinidad panel components live and what they support
The accordion and showDetailItem components
The combination of Accordion and showDetailItem
Skinning the panels
Chapter 7: Building a Form
Building a form
Chapter 8: Growing a Tree
Trinidad's tree components
ChildPropertyTreeModel—Trinidad's out of the box model
Creating a TreeNode Model
Building up a tree model
Creating the XHTML
Extending the model-view tree couple
Chapter 9: The table and treeTable Components
The table component
The treeTable component
Chapter 10: The Chart Component
Where the chart component is and what it supports
Chapter 11: Building a Wizard
Defining an abstract wizard model
Defining the concrete wizard
Defining the XHTML side—the wizard's face
Chapter 12: Dialogs: Pop-Up Your Web Application!
Using the right scope: Seam or only Trinidad
Defining a dialog-enabled navigation control
Making a dialog-enabled tree control
Revisiting the wizard—few additions make it pop-up

What You Will Learn

  • Integrate Trinidad with Facelets and Seam to get the most out of JSF
  • Tackle web application issues with the help of Seam
  • Create a panel-based Trinidad user interface using Trinidad forms and Facelet input components
  • Create a wizard based on Trinidad components
  • Create pop-up or main browser window dialogs using Trinidad dialog framework
  • Work with Trinidad's table technology features including the use of JSF binding
  • Get a grip on Trinidad's AJAX technology, or more adequately described, its partial page rendering technique (PPR)
  • Deploy your web applications using Seam-gen
  • Implement login, authorization, navigation, internationalization, and more
  • Master all the major concepts of Trinidad

Chapter 1: In this chapter, we introduce you to the Trinidad component library. We give a general idea of this component library, which areas are covered by its components, and compare it to other libraries. Finally, the integration of Trinidad and Seam is discussed.

Chapter 2: In this chapter, we take a look at Facelets as a basic means to structure and build pages using Facelet page composition, Facelet composition components, and JSTL.

Chapter 3: In this chapter, we discuss the Trinidad tags and their attributes in a structured approach. You will gain an insight into the design of Trinidad allowing you to draw an efficient mental map of the library and make an effective selection and application of tags.

Chapter 4: In this chapter, we introduce you to the Trinidad's AJAX technology, called PPR (Partial Page Rendering). PPR is inspected from two points of view – the pure tag-based partial rendering and the pure Java-side partial rendering techniques.

Chapter 5: In this chapter, we develop the basic parts of the web application that serves as our Trinidad example. We present using Seam-gen to rapidly deploy after each change of any file.

Chapter 6: In this chapter, we deal with Trinidad's panelAccordion and showDetailItem components to show how they can be combined to build panel-based, panel-wise collapsible content.

Chapter 7: In this chapter, we discuss how to combine Trinidad's tags and Facelet composition components to build highly flexible and well-formatted forms including messaging support.

Chapter 8: In this chapter, we deal with Trinidad's tree components and models and exemplify their application. We present an effective shortcut that makes Trinidad's tree support an easy and yet powerful technology.

Chapter 9: In this chapter, we deal with Trinidad's table and treeTable components and exemplify their application. We apply the components in an increasingly refined way revealing most of their features, one at a time.

Chapter 10: In this chapter, we deal with Trinidad's chart component and show its application. You will learn to competently set up representation parameters, so effectively achieving the intended representation focus and thus graphically materializing hidden information in an appropriate way.

Chapter 11: In this chapter, we deal with Trinidad's components to implement a wizard and show their application. We present a solution to avoid an existing Facelet problem.

Chapter 12: In this chapter, we discuss Trinidad's pop-up window techniques. We revisit Seam conversations to address Trinidad's and Seam's specific necessities for pop-up dialogs. We enhance the web application with a couple of pop-up windows including wizard pop-up support.

In Detail

In today's world, JSF is one of the pivotal technologies for implementing middle- to large-scale web applications. With Trinidad, JSF developers have a powerful open source component framework at their fingertips.

This book introduces Apache MyFaces Trinidad, a powerful JSF component framework and combines it with Seam, the next-generation Web Application Framework to achieve the most comprehensive and effective technology for the development of powerful rich-client web applications.

In this book, you start out by learning where Trinidad comes from and what its aims are. You will learn how Facelets and Seam are used to get the most out of JSF. In addition, you will also learn the often occurring tag attributes, and, in particular, Trinidad's AJAX technology. You will implement login, authorization, navigation, internationalization, polling, and support for browser issues with the help of these technologies. You will then use Seam-gen for deployment.

Next, you will develop a web application example where a series of selected Trinidad components are applied and their capabilities explored. Finally, you will master the Trinidad dialog framework, a key Trinidad technology that allows the application of dialogs.


Read More

Recommended for You

Apache MyFaces 1.2 Web Application Development
$ 26.99
JSF 2.0 Cookbook: LITE
$ 9.99