User Guide 6.2
Total Page:16
File Type:pdf, Size:1020Kb
USER GUIDE 6.2 Author Çağatay Çivici PrimeFaces User Guide First Edition Table of Contents About the Author..................................................................................................................................9 1. Introduction....................................................................................................................................10 1.1 What is PrimeFaces?.............................................................................................................10 2. Setup...............................................................................................................................................11 2.1 Download...............................................................................................................................11 2.2 Dependencies.........................................................................................................................12 2.3 Configuration.........................................................................................................................13 2.4 Hello World...........................................................................................................................13 3. Component Suite............................................................................................................................15 3.1 AccordionPanel......................................................................................................................15 3.2 AjaxBehavior.........................................................................................................................20 3.3 AjaxExceptionHandler..........................................................................................................23 3.4 AjaxStatus..............................................................................................................................24 3.5 AutoComplete........................................................................................................................27 3.6 AutoUpdate............................................................................................................................37 3.7 Barcode..................................................................................................................................38 3.8 BlockUI.................................................................................................................................41 3.9 BreadCrumb..........................................................................................................................44 3.10 Button..................................................................................................................................46 3.11 Cache...................................................................................................................................49 3.12 Calendar...............................................................................................................................51 3.13 Captcha................................................................................................................................62 3.14 Carousel...............................................................................................................................65 3.15 CellEditor............................................................................................................................71 3.16 Chart....................................................................................................................................72 3.16.1 PieChart.......................................................................................................................73 3.16.2 LineChart.....................................................................................................................75 3.16.3 BarChart.......................................................................................................................78 3.16.4 DonutChart..................................................................................................................80 3.16.5 BubbleChart.................................................................................................................82 3.16.6 Ohlc Chart....................................................................................................................84 3.16.7 MeterGauge Chart.......................................................................................................86 3.16.8 Combined Chart...........................................................................................................88 3.16.9 Multiple Axis...............................................................................................................89 3.16.10 Date Axis...................................................................................................................91 3.16.11 Interactive Chart........................................................................................................92 3.16.12 Export........................................................................................................................93 3.16.13 Static Images..............................................................................................................94 3.16.14 Skinning.....................................................................................................................95 3.16.15 Extender.....................................................................................................................96 3.16.16 Chart API...................................................................................................................97 2 PrimeFaces User Guide 3.17 Checkbox...........................................................................................................................102 3.18 Chips..................................................................................................................................103 3.19 Clock..................................................................................................................................105 3.20 Collector............................................................................................................................107 3.21 Color Picker.......................................................................................................................108 3.22 Column..............................................................................................................................111 3.23 Columns.............................................................................................................................113 3.24 ColumnGroup....................................................................................................................115 3.25 ColumnToggler..................................................................................................................116 3.26 CommandButton................................................................................................................117 3.27 CommandLink...................................................................................................................122 3.28 Confirm..............................................................................................................................126 3.29 ConfirmDialog...................................................................................................................127 3.30 ContentFlow......................................................................................................................130 3.31 ContextMenu.....................................................................................................................132 3.32 Dashboard..........................................................................................................................135 3.33 DataExporter......................................................................................................................140 3.34 DataGrid............................................................................................................................144 3.35 DataList.............................................................................................................................151 3.36 DataScroller.......................................................................................................................155 3.37 DataTable...........................................................................................................................159 3.38 DefaultCommand..............................................................................................................184 3.39 Diagram.............................................................................................................................186 3.40 Dialog................................................................................................................................190 3.41 Drag&Drop........................................................................................................................195 3.41.1 Draggable...................................................................................................................195 3.41.2 Droppable..................................................................................................................199 3.42 Dock..................................................................................................................................204