PrimeFaces Cookbook, 2nd Edition: Over 100 practical recipes to learn PrimeFaces 5.x – the most popular JSF component library on the planet
معرفی کتاب «PrimeFaces Cookbook, 2nd Edition: Over 100 practical recipes to learn PrimeFaces 5.x – the most popular JSF component library on the planet» نوشتهٔ Mert Çalişkan; Oleg Varaksin; Çaḡatay Çivici; Ed Burns، منتشرشده توسط نشر Packt Publishing در سال 2015. این کتاب در 5 صفحه، فرمت pdf، زبان انگلیسی ارائه شده است.
Over 100 practical recipes to learn PrimeFaces 5.x ? the most popular JSF component library on the planet In Detail PrimeFaces is the most popular component library used in the JSF ecosystem. It is a lightweight library with one JAR, zero configuration, and no required dependencies. This book covers over 100 effective recipes for PrimeFaces 5.2, which is a leading component suite to boost JSF-based applications. The book starts with an introduction to PrimeFaces and its concepts, such as AJAX processing, the selector mechanism, partial view submit, and i18n support. Later chapters then focus on theming and the usage of over 100 input and output components, such as tables, charts, menus, and so on. This cookbook provides a solid foundation by covering all the knowledge needed to work with PrimeFaces components in the real world. What You Will Learn Understand basic concepts such as AJAX processing and partial view submit so that you can work with PrimeFaces Go beyond the basics and discover more interesting features of PrimeFaces: PrimeFaces selectors, RequestContext, Dialog Framework, and more Delve deep into over 100 rich UI components with all the required details Get practical solutions to complex problems that arise in a JSF ecosystem Use best practices, avoid pitfalls, and get performance tips when working with the component suite Cover 1 Copyright 3 Credits 4 Foreword 5 About the Authors 8 About the Reviewers 10 www.PacktPub.com 12 Table of Contents 16 Preface 20 Chapter 1: Getting Started with PrimeFaces 26 Introduction 26 Setting up and configuring the PrimeFaces library 27 AJAX basics with process and update 30 PrimeFaces selectors 34 Partial process and update with fragments 38 Partial view submit 40 Internationalization (i18n) and Localization (L10n) 42 Improved resource ordering 49 Chapter 2: Theming Concepts 52 Introduction 52 Understanding structural and skinning CSS 53 Installing themes 57 Customizing default theme styles 60 Adjusting the font and size throughout the web application 64 Simple ways to create a new theme 66 Stateless and stateful theme switchers 69 Integrating Font Awesome with PrimeFaces 73 Chapter 3: Enhanced Inputs and Selects 78 Introduction 78 Formatted input with inputMask 79 Auto suggestion with autoComplete 82 Usable features of inputTextArea 87 Discovering selectBooleanCheckbox and selectManyCheckbox 90 Choosing a single item with selectOneMenu 92 Basic and advanced calendar scenarios 94 Spinner – different ways to provide input 99 Slider – different ways to provide input 101 Rich text editing with the editor 104 Advanced editing with an in-place editor 108 Enhanced password input 111 Star-based rating input 113 Chapter 4: Grouping Content with Panels 116 Introduction 116 Grouping content with a standard panel 117 PanelGrid with colspan and rowspan support 120 Vertical stacked panels with accordion 124 Displaying overflowed content with scrollPanel 127 Working with a tabbed panel 128 Grouping of buttons and more with toolbar 132 Multipurpose output panel 133 Simulating the portal environment with dashboard 135 Creating complex layouts 138 Responsive layout with Grid CSS 144 Chapter 5: Data Iteration Components 150 Introduction 151 Selecting rows in dataTable 151 Sorting and filtering data in dataTable 156 In-cell editing with dataTable 161 Resizing, reordering, and toggling columns in dataTable 165 Making dataTable responsive 172 Using subTable for grouping 174 Handling tons of data – LazyDataModel 177 Listing data with dataList 178 Listing data with pickList 182 Listing data with orderList 187 Visualizing data with tree 189 Visualizing data with treeTable 196 Exporting data in various formats 201 Managing events with schedule by leveraging lazy loading 204 Visualizing data with dataScroller 211 Chapter 6: Endless Menu Variations 214 Introduction 214 Statically and dynamically positioned menus 215 Creating programmatic menus 218 The context menu with nested items 222 Context menu integration 224 Breadcrumb – providing contextual information about page hierarchy 228 SlideMenu – menu in iPod style 229 TieredMenu – submenus in nested overlays 232 MegaMenu – multicolumn menu 235 PanelMenu – hybrid of accordion and tree 239 MenuButton – multiple items in a popup 241 Accessing commands via menubar 243 Displaying checkboxes in selectCheckboxMenu 246 Chapter 7: Working with Files, Images, and Multimedia 252 Introduction 253 Basic, automatic, drag and drop, and multiple file uploading 253 Downloading files 260 Cropping images 263 Creating dynamic image streaming programmatically 266 Displaying a collection of images with galleria 267 Displaying a collection of images with imageSwitch 270 Displaying a collection of images with contentFlow 273 Embedding multimedia content in JSF pages 276 Capturing images with photoCam 279 Chapter 8: Drag Me, Drop Me 282 Introduction 282 Making a component draggable 283 Restricting dragging by axis, grid, and containment 285 Snapping to the edges of the nearest elements 287 Defining droppable targets 290 Restricting dropping by tolerance and acceptance 292 AJAX-enhanced drag and drop 295 Integrating drag and drop with data iteration components 302 Chapter 9: Creating Charts and Maps 308 Introduction 308 Creating line, area, bar, and pie charts 309 Creating combined charts 313 Updating live data in charts with polling 315 Interacting with charts via AJAX 316 Basic mapping with GMaps 317 Adding, selecting, and dragging markers in maps 319 Creating rectangles, circles, polylines, and polygons in maps 321 Enabling InfoWindow and streetView on maps 323 Chapter 10: Client-side Validation 326 Introduction 326 Configuring and getting started with CSV 327 Instant validation with p:clientValidator 333 Bean Validation and transformation 335 Extending CSV with JSF 340 Extending CSV with Bean Validation 346 Chapter 11: Miscellaneous Advanced Use Cases 354 Introduction 355 Programmatic updating and scrolling with RequestContext 355 Two ways of triggering JavaScript execution 358 Adding AJAX callback parameters – validation within a dialog 362 Opening external pages in dynamically generated dialogs 365 Polling – sending periodical AJAX requests 372 Blocking page pieces during long-running AJAX calls 374 Controlling form submission using defaultCommand 377 Clever focus management in forms 380 Layout pitfalls of menus and dialogs 382 Targetable messages with severity levels 386 Conditional coloring in dataTable 389 Sticking a component when scrolling 390 Reducing page load time using content caching 393 Possibilities for exception handling in PrimeFaces 396 Index 402 www.it-ebooks.info Key FeaturesBook DescriptionWhat you will learnUnderstand basic concepts such as AJAX processing and partial view submit so that you can work with PrimeFacesGo beyond the basics and discover more interesting features of PrimeFaces: PrimeFaces selectors, RequestContext, Dialog Framework, and moreDelve deep into over 100 rich UI components with all the required detailsGet practical solutions to complex problems that arise in a JSF ecosystemUse best practices, avoid pitfalls, and get performance tips when working with the component suiteWho this book is forThis book is for everybody who would like to learn modern Java web development based on PrimeFaces and is looking for a quick introduction to this matter. Prerequisites for this book are basic JSF, jQuery, and CSS skills. Mert Çalişkan, Oleg Varaskin ; Forewords By Çaḡatay Çivici, Ed Burns. Includes Index. Quick Answers To Common Problems--cover.
دانلود کتاب PrimeFaces Cookbook, 2nd Edition: Over 100 practical recipes to learn PrimeFaces 5.x – the most popular JSF component library on the planet