PrimeFaces Cookbook
Formats:
save 15%!
save 37%!
Free Shipping!
| Also available on: |
|
- The first PrimeFaces book that concentrates on practical approaches rather than the theoretical ones
- Readers will gain all the PrimeFaces insights required to complete their JSF projects successfully
- Written in a clear, comprehensible style and addresses a wide audience on modern, trend-setting Java/JEE web development
Book Details
Language : EnglishPaperback : 328 pages [ 235mm x 191mm ]
Release Date : January 2013
ISBN : 1849519285
ISBN 13 : 9781849519281
Author(s) : Oleg Varaksin, Mert Çalışkan
Topics and Technologies : All Books, Cookbooks, Java, Open Source
Table of Contents
PrefaceChapter 1: Getting Started with PrimeFaces
Chapter 2: Theming Concept
Chapter 3: Enhanced Inputs and Selects
Chapter 4: Grouping Content with Panels
Chapter 5: Data Iteration Components
Chapter 6: Endless Menu Variations
Chapter 7: Working with Files and Images
Chapter 8: Drag Me, Drop Me
Chapter 9: Creating Charts and Maps
Chapter 10: Miscellaneous, Advanced Use Cases
Index
- Chapter 1: Getting Started with PrimeFaces
- Introduction
- Setting up and configuring the PrimeFaces library
- AJAX basics with Process and Update
- Internationalization (i18n) and Localization (L10n)
- Improved resource ordering
- PrimeFaces scaffolding with Spring Roo
- Chapter 2: Theming Concept
- Introduction
- Understanding the structural and skinning CSS
- Installing themes
- Customizing theme styles
- Customizing default styles on input components
- Adjusting the font and size throughout the web application
- Why does the theme look different in Internet Explorer?
- Simple ways to create a new theme
- Default stateless theme switcher
- Alternative stateful theme switchers
- Chapter 3: Enhanced Inputs and Selects
- Introduction
- Formatted input with inputMask
- Auto suggestion with autoComplete
- Usable features of inputTextArea
- Discovering selectBooleanCheckbox and selectManyCheckbox
- Basic and advanced calendar scenarios
- Spinner – different ways to provide input
- Slider – different ways to provide input
- Rich text editing with editor
- Advanced editing with in-place editor
- Enhanced password input
- Star-based rating input
- Chapter 4: Grouping Content with Panels
- Introduction
- Grouping content with a standard panel
- Panel grid with colspan and rowspan support
- Vertical stacked panels with accordion
- Displaying overflowed content with scrollPanel
- Working with a tabbed panel
- Grouping of buttons and more with toolbar
- Simulating the portal environment with dashboard
- Creating complex layouts
- Chapter 5: Data Iteration Components
- Introduction
- Selecting rows in dataTable
- Sorting and filtering data in dataTable
- In-cell editing with dataTable
- Conditional coloring in dataTable
- Handling tons of data – LazyDataModel
- Listing data with dataList
- Listing data with pickList
- Listing data with orderList
- Visualizing data with tree
- Visualizing the data with treeTable
- Exporting data in various formats
- Visualizing data with carousel
- Visualizing data with ring
- Chapter 6: Endless Menu Variations
- Introduction
- Static and dynamic positioned menus
- Creating a programmatic menu
- Context menu with nested items
- Context menu integration
- SlideMenu – menu in iPod style
- TieredMenu – submenus in nested overlays
- MegaMenu – multicolumn menu
- PanelMenu – hybrid of accordion and tree
- Accessing commands via Menubar
- Displaying checkboxes in SelectCheckboxMenu
- Dock menu for Mac OS fans
- Chapter 7: Working with Files and Images
- Introduction
- Basic, automatic, and multiple file upload
- Uploading a file with drag-and-drop
- Downloading files
- Cropping images
- Displaying a collection of images
- Capturing images with photoCam
- Comparing images
- Chapter 8: Drag Me, Drop Me
- Introduction
- Making a component draggable
- Restricting dragging by axis, grid, and containment
- Snapping to the edges of nearest elements
- Defining droppable targets
- Restricting dropping by tolerance and acceptance
- AJAX-enhanced drag-and-drop
- Integrating drag-and-drop with data iteration components
- Chapter 9: Creating Charts and Maps
- Introduction
- Creating a line chart
- Creating a bar chart
- Creating a pie chart
- Creating a bubble chart
- Creating a donut (doughnut) chart
- Creating a meter gauge chart
- Creating an OHLC chart
- Updating live data in charts with polling
- Interacting with charts through AJAX
- Creating dynamic image streaming programmatically
- Mapping with Google Maps
- Chapter 10: Miscellaneous, Advanced Use Cases
- Introduction
- The power of the PrimeFaces selectors
- Programmatic updating and scrolling with RequestContext
- Two ways to trigger JavaScript execution
- Adding AJAX callback parameters – validation within a dialog
- Navigating to another page in AJAX calls
- Polling – sending periodical AJAX requests
- Blocking page pieces during long-running AJAX calls
- Remembering current menu selection
- Controlling form submission by DefaultCommand
- Clever focus management in forms
- Layout pitfalls with menus and dialogs
- Targetable messages with severity levels
- Leveraging Schedule's lazy loading feature
Oleg Varaksin
Mert Çalışkan
Code Downloads
Download the code and support files for this book.
Submit Errata
Please let us know if you have found any errors not listed on this list by completing our errata submission form. Our editors will check them and add them to this list. Thank you.
Errata
- 1 submitted: last submission 22 Jan 2013On page number 3, the links for the free download chapters 11 and 12 are incorrect.
The correct links are as follows:
Chapter 11
Chapter 12
Sample chapters
You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.
- Learn basic concepts to be able to work with PrimeFaces.
- Delve deep into 100+ rich UI components with all the required details
- Get solutions to typical and advanced use cases
- Use the best practices, avoid pitfalls, and get performance tips when working with the component suite
- Gain know-how of writing custom components on basis of the PrimeFaces' core functionality
- Meet additional components from the PrimeFaces Extensions
PrimeFaces is the de facto standard in the Java web development. PrimeFaces is a lightweight library with one jar, zero-configuration, and no required dependencies. You just need to download PrimeFaces, add the primefaces-{version}.jar to your classpath and import the namespace to get started. This cookbook provides a head start by covering all the knowledge needed for working with PrimeFaces components in the real world.
"PrimeFaces Cookbook" covers over 100 effective recipes for PrimeFaces 3.x which is a leading component suite to boost JSF applications. The book’s range is wide‒ from AJAX basics, theming, and input components to advanced usage of datatable, menus, drag & drop, and charts. It also includes creating custom components and PrimeFaces Extensions.
You will start with the basic concepts such as installing PrimeFaces, configuring it, and writing a first simple page. You will learn PrimeFaces' theming concept and common inputs and selects components. After that more advanced components and use cases will be discussed. The topics covered are grouping content with panels, data iteration components, endless menu variations, working with files and images, using drag & drop, creating charts, and maps. The last chapters describe solutions for frequent, advanced scenarios and give answers on how to write custom components based on PrimeFaces and also show the community-driven open source project PrimeFaces Extension in action.

