Details zum E-Book

JSF 1.2 Components. Develop advanced Ajax-enabled JSF applications

JSF 1.2 Components. Develop advanced Ajax-enabled JSF applications

IAN HLAVATS

E-book
Today's web developers need powerful tools to deliver richer, faster, and smoother web experiences. JavaServer Faces includes powerful, feature-rich, Ajax-enabled UI components that provide all the functionality needed to build web applications in a Web 2.0 world. It's the perfect way to build rich, interactive, and Web 2.0-style Java web apps.
This book provides a comprehensive introduction to the most popular JSF components available today and demonstrate step-by-step how to build increasingly sophisticated JSF user interfaces with standard JSF, Facelets, Apache Tomahawk/Trinidad, ICEfaces, JBoss Seam, JBoss RichFaces/Ajax4jsf, and JSF 2.0 components. JSF 1.2 Components is both an excellent starting point for new JSF developers, and a great reference and “how to” guide for experienced JSF professionals.
This book progresses logically from an introduction to standard JSF HTML, and JSF Core components to advanced JSF UI development. As you move through the book, you will learn how to build composite views using Facelets tags, implement common web development tasks using Tomahawk components, and add Ajax capabilities to your JSF user interface with ICEfaces components. You will also learn how to solve the complex web application development challenges with the JBoss Seam framework. At the end of the book, you will be introduced to the new and up-coming JSF component libraries that will provide a road map of the future JSF technologies.
  • JSF 1.2 Components
    • Table of Contents
    • JSF 1.2 Components
    • Credits
    • Foreword
    • About the Author
    • About the Reviewers
    • Preface
      • What this book covers
      • What you need for this book
      • Conventions
      • Customer support
        • Downloading the example code for the book
        • Errata
        • Piracy
        • Questions
    • 1. Standard JSF Components
      • An introduction to JSF
        • The Model-View-Controller architecture
        • Managed beans
        • The JSF Expression Language (JSF EL)
        • Converters and validators
      • Next steps
      • Getting input from the user
        • Rendering a text field
        • Rendering a text area
      • Form submission
        • Rendering a form
        • Rendering a button
        • Rendering a link
      • Rendering text
        • Rendering localized text
          • Registering a message bundle (JSF 1.1)
          • Registering a message bundle (JSF 1.2)
        • Rendering date/time information
        • Rendering parameterized text
        • Rendering labels
        • Rendering a validation message
        • Rendering all validation messages
      • Making selections
        • Rendering a checkbox
        • Rendering multiple checkboxes
        • Rendering radio buttons
        • Selecting one or selecting many values
        • Rendering a list of countries
        • Rendering a single-select list of options
        • Rendering a multiple-select list of options
      • Laying out components
        • Rendering a complex layout table
        • Rendering a table column
      • Displaying data
        • Rendering an HTML table
      • Summary
    • 2. Facelets Components
      • A brief history of Java web development
      • Comparing Facelets and JSP
      • Configuring a JSF application to use Facelets
        • Configuring web.xml
        • Configuring faces-config.xml
      • Getting started with Facelets
        • Hello World Facelets
      • Rendering debug information
      • Iterating data in a Facelets page
      • Removing UI components and markup
      • Including UI components and markup
        • Including a header and footer
          • Creating the header Facelet
          • Creating the footer Facelet
      • Passing parameters from one Facelet to another
      • Rendering a UI composition
        • Including a UI composition
        • Declaring a UI composition
      • Rendering a UI component
        • Including a UI component
        • Declaring a UI component
      • Creating a Facelets UI composition template
        • A simple Facelets template
          • A simple Facelets template client
          • Another simple Facelets template client
        • A more complex Facelets template
      • Decorating the user interface
        • Decorating content on a Facelets page
        • Creating a Facelets decoration
      • Rendering a UI fragment
      • An advanced Facelets composition template
      • Summary
    • 3. Apache MyFaces Tomahawk Components
      • Validating user input
        • Validating e-mail addresses
        • Validating a phone number with a regular expression pattern
        • Validating that two fields have an equal value
      • Managing date and time selection
        • Selecting a date
        • Rendering a simple calendar
        • Rendering an appointment schedule
      • File management
        • Uploading a file
      • Working with trees
        • Creating a tree
        • Creating a tree column
        • Customizing the tree component
      • Navigation menus
        • Creating a navigation menu
        • Creating bookmarkable navigation menus
        • Populating a navigation menu
        • Generating dynamic navigation menus
        • Using the JSCookMenu component
      • User interface security
        • Configuring web.xml
        • Security-enabled components
        • Tomahawk SecurityContext EL extension
      • Displaying data
        • Rendering an unordered list
        • Rendering a definition list
        • Rendering a data table
          • Paginating a data table
          • Rendering a multi-column data table with a newspaper layout
      • Summary
    • 4. Apache MyFaces Trinidad Components
      • Installation and Configuration
      • What is Ajax?
      • Receiving input from the user
        • Rendering a color picker
        • Rendering a calendar
        • Rendering a number spinbox
        • Rendering a text field
        • Rendering a selectable list of values
      • Client-side conversion and validation
        • Enabling client-side validation in trinidad-config.xml
        • Validating one field at a time
      • Enabling Ajax functionality
        • Partial submit and partial triggers
        • Polling the server
        • Rendering a status indicator
        • Rendering a progress bar
      • Laying out components on the screen
        • Rendering a row layout
        • Rendering a complex table layout
        • Rendering a form layout
        • Rendering a panel group layout
      • Shuttling selections between lists
        • Rendering a multiple selection shuttle
        • Rendering an ordered shuttle
      • Working with tree and tree table components
        • Rendering a tree
        • Rendering a tree table
      • Creating navigation menus
        • Rendering a navigation tree
        • Rendering breadcrumbs
        • Rendering a multistep process (Train)
        • Rendering a process choice bar
      • Skinning and theme selection
        • Creating a new Trinidad skin
        • Implementing the skins cascading style sheet
        • Rendering an icon
        • Customizing the Trinidad tree component's node icons
      • Implementing dialog windows
        • Declaring dialog navigation rules in faces-config.xml
        • Launching a dialog window
        • Returning a value from a dialog window
      • Summary
    • 5. ICEfaces Components
      • Receiving input from users
        • Rendering validation messages and text with effects
        • Receiving HTML input from users
        • Handling file uploads with ICEfaces
        • Rendering a calendar component
      • Creating navigation and pop-up menus
        • Creating a horizontal navigation menu with submenus
        • Rendering a vertical navigation menu with submenus
        • Adding menu separator items
        • Using context menus
      • Using tree components
        • Using the default tree node icons
        • Using custom tree node icons
      • Displaying data in tables
        • The ICEfaces data table component
        • Rendering dynamic columns
        • Implementing sortable column headers
        • Supporting resizable columns
        • Data table single row selection mode
        • Data table multiple row selection mode
        • Data table enhanced multiple row selection mode
        • Implementing data set paging
      • Rendering charts
        • Rendering a stacked bar chart
        • Rendering a 3-D pie chart
        • Rendering a bar chart
      • Laying out components with panels
        • Working with a border layout
        • Rearranging elements in a list
        • Rendering a series of components
        • Rendering collapsible panels
      • Creating a tabbed user interface
      • Working with modal dialogs
        • Rendering a simple modal dialog
        • Rendering a draggable dialog box
          • Rendering a draggable modal dialog
      • Summary
    • 6. JBoss Seam Components
      • Introducing the JBoss Seam framework
      • Java Enterprise Edition (Java EE) technology
        • Understanding Java SE and Java EE
          • Introducing Enterprise JavaBeans (EJB3) technology
            • Introducing the Java Persistence API (JPA)
            • Container Managed Transactions (CMT)
            • Activation and passivation for Stateful Session Beans (SFSBs)
            • Object pooling for Stateless Session Beans (SLSBs)
            • Integrating EJB3 and JSF with Seam
          • Introducing Seam components
        • Introducing REST
      • Next steps
      • Validating user input with the Seam framework
      • Implementing JSF validation with Seam
        • JPA and the Hibernate Validator framework
      • Decorating the UI to improve form validation
      • Adding cutting-edge Ajax technology with Ajax4jsf
      • Displaying success messages in JSF
      • Seam conversation management
        • Temporary conversations
          • ShippingCalculatorBean.java
          • faces-config.xml
          • pages.xml
          • conversation01.jsf
          • conversation02.jsf
        • Starting a long-running conversation
          • Declaring navigation rules in faces-config.xml
          • Defining a long-running conversation in pages.xml
          • Implementing OrderBeanImpl.java
          • The introductory page of the order process
          • The customer registration screen (Step 1)
          • The shipping information screen (Step 2)
          • The order details confirmation screen (Step 3)
        • Concurrent conversations
      • Debugging Seam applications
      • Summary
    • 7. JBoss RichFaces and Ajax4jsf Components
      • Introducing JBoss RichFaces and Ajax4jsf
        • The JBoss RichFaces component library
        • The Ajax4jsf component library
      • Accepting user input
        • Rendering editable text
        • Rendering an in-place select component
        • Combining in-place input and select components
        • Rendering a slider component
        • Rendering a number spinner component
        • Rendering a calendar component
        • Rendering a color picker component
        • Rendering a combo box component
        • Rendering a suggestion box component with auto-complete
        • Rendering a pick list component
        • Rendering a rich text editor component
      • Using Ajax effectively
        • Understanding how Ajax4jsf works
        • Ajax-enabled form submission
        • Invoking an Ajax-enabled command link
        • Polling the server asynchronously
      • Panel components
        • Creating a basic panel
        • Rendering a panel bar
        • Rendering a panel menu
        • Rendering groups of menu items
        • Rendering a tabbed user interface
        • Rendering a toggle panel
      • Displaying data
        • Rendering a data table
        • Rendering a data table with a header, footer, and caption
        • Implementing sortable data table column headers
        • Filtering rows in a data table
        • Rendering a data grid
        • Adding a data scroller
        • Customizing the data scroller
        • Rendering an ordered list
        • Customizing an ordered list
        • Rendering a data definition list
      • Using special components
        • Rendering a Google Maps object
        • Rendering a Microsoft Virtual Earth object
      • Summary
    • A. Learning JSF: Next Steps
      • JSF 2.0
        • New JSF annotations added to ease configuration
        • Simplified navigation mapping convention
          • JSF 1.x Navigation Mapping
          • JSF 2.0 Navigation Mapping
        • A Web resource loading mechanism for images, stylesheets, JavaScript files, and so on
        • Facelets is now integrated in JSF 2.0
        • The new "composite" JSF tag library for creating composite components
        • Built-in support for adding Ajax capabilities to UI components with <f:ajax>
      • The PrimeFaces component library
      • Next steps
    • Index
  • Titel: JSF 1.2 Components. Develop advanced Ajax-enabled JSF applications
  • Autor: IAN HLAVATS
  • Originaler Titel: JSF 1.2 Components. Develop advanced Ajax-enabled JSF applications
  • ISBN: 9781847197634, 9781847197634
  • Veröffentlichungsdatum: 2009-11-25
  • Format: E-book
  • Artikelkennung: e_3cmw
  • Verleger: Packt Publishing