PrimeFaces Cookbook


PrimeFaces Cookbook
eBook: $26.99
Formats: PDF, PacktLib, ePub and Mobi formats
$22.94
save 15%!
Print + free eBook + free PacktLib access to the book: $71.98    Print cover: $44.99
$44.99
save 37%!
Free Shipping!
UK, US, Europe and selected countries in Asia.
Also available on:
Overview
Table of Contents
Author
Support
Sample Chapters
  • 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 : English
Paperback : 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, Web Development, Cookbooks, Java, Open Source

Table of Contents

Preface
Chapter 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

                      Oleg Varaksin is a Senior Software Engineer living in the Black Forest, Germany. He is a graduate computer scientist who studied Informatics at Russian and German universities. His main occupation and "daily bread" in the last 6 to 7 years has consisted of building web applications based on Struts, JSP, JSF, Spring, and jQuery—mostly document management systems. He is an experienced JSF expert and has been working with the component library PrimeFaces since its beginning in 2009. He is also a well-known member of the PrimeFaces community and co-creator of the PrimeFaces Extensions project—additional JSF 2 components for PrimeFaces. Besides these mentioned technologies, he has worked as a Frontend Developer with many other web and JS frameworks—GWT, Prototype, YUI Library, and so on—and implemented his own AJAX framework before all the hype about AJAX began. Oleg normally shares the knowledge he has acquired on his blog http://ovaraksin.blogspot.com.

                      Mert Çalışkan

                      Mert Çalışkan is a Principle Software Architect living in Ankara, Turkey. He has over 10 years of expertise in Software Development and he has mainly worked on architectural design of Enterprise Web Applications with specialty in Java. He is also an open source advocate for software projects such as PrimeFaces, and has also been a committer and founder to various others. He shares his knowledge and ideas at local and international conferences such as JSFDays 2008, JDC 2010, CeTURK 2010, and Gelecex 2012. He is also a member of OpenLogic Expert Community and Apache Software Foundation.
                      Sorry, we don't have any reviews for this title yet.

                      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 30 Jul 2013

                      On page number 3, the links for the free download chapters 11 and 12 are incorrect.

                       

                      The correct links are as follows:

                       

                      Chapter 11

                      http://www.packtpub.com/sites/default/files/downloads/9281OS_Chapter_11_Writing_Custom_Components.pdf

                      Chapter 12

                      http://www.packtpub.com/sites/default/files/downloads/9281OS_Chapter_12_PrimeFaces_Extensions_in_Action.pdf

                      Sample chapters

                      You can view our sample chapters and prefaces of this title on PacktLib or download sample chapters in PDF format.

                      Frequently bought together

                      PrimeFaces Cookbook +    Java EE Development with Eclipse =
                      50% Off
                      the second eBook
                      Price for both: ₨369.40

                      Buy both these recommended eBooks together and get 50% off the cheapest eBook.

                      What you will learn from this book

                      • 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

                      In Detail

                      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.

                      Approach

                      This is a cookbook with plenty of practical recipes enriched with code and detailed explanations.

                      Who this book is for

                      This book is for you if you would like to learn modern Java web development based on PrimeFaces and are looking for a quick introduction into this matter. Prerequisites required for this book are basic JSF and jQuery skills.

                      Code Download and Errata
                      Packt Anytime, Anywhere
                      Register Books
                      Print Upgrades
                      eBook Downloads
                      Video Support
                      Contact Us
                      Awards Voting Nominations Previous Winners
                      Judges Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software
                      Resources
                      Open Source CMS Hall Of Fame CMS Most Promising Open Source Project Open Source E-Commerce Applications Open Source JavaScript Library Open Source Graphics Software