User Guide 6.1
Total Page:16
File Type:pdf, Size:1020Kb
USER GUIDE 6.1 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............................................................................................................................14 3.1 AccordionPanel......................................................................................................................14 3.2 AjaxBehavior.........................................................................................................................19 3.3 AjaxExceptionHandler..........................................................................................................22 3.4 AjaxStatus..............................................................................................................................23 3.5 AutoComplete........................................................................................................................26 3.6 Barcode..................................................................................................................................36 3.7 BlockUI.................................................................................................................................39 3.8 BreadCrumb..........................................................................................................................42 3.9 Button....................................................................................................................................44 3.10 Cache...................................................................................................................................47 3.11 Calendar...............................................................................................................................49 3.12 Captcha................................................................................................................................60 3.13 Carousel...............................................................................................................................63 3.14 CellEditor............................................................................................................................69 3.15 Chart....................................................................................................................................70 3.15.1 PieChart.......................................................................................................................71 3.15.2 LineChart.....................................................................................................................73 3.15.3 BarChart.......................................................................................................................76 3.15.4 DonutChart..................................................................................................................78 3.15.5 BubbleChart.................................................................................................................80 3.15.6 Ohlc Chart....................................................................................................................82 3.15.7 MeterGauge Chart.......................................................................................................84 3.15.8 Combined Chart...........................................................................................................86 3.15.9 Multiple Axis...............................................................................................................87 3.15.10 Date Axis...................................................................................................................89 3.15.11 Interactive Chart........................................................................................................90 3.15.12 Export........................................................................................................................91 3.15.13 Static Images..............................................................................................................92 3.15.14 Skinning.....................................................................................................................93 3.15.15 Extender.....................................................................................................................94 3.15.16 Chart API...................................................................................................................95 3.16 Checkbox...........................................................................................................................100 2 PrimeFaces User Guide 3.17 Chips..................................................................................................................................101 3.18 Clock..................................................................................................................................103 3.19 Collector............................................................................................................................105 3.20 Color Picker.......................................................................................................................106 3.21 Column..............................................................................................................................109 3.22 Columns.............................................................................................................................111 3.23 ColumnGroup....................................................................................................................113 3.24 ColumnToggler..................................................................................................................114 3.25 CommandButton................................................................................................................115 3.26 CommandLink...................................................................................................................120 3.27 Confirm..............................................................................................................................124 3.28 ConfirmDialog...................................................................................................................125 3.29 ContentFlow......................................................................................................................128 3.30 ContextMenu.....................................................................................................................130 3.31 Dashboard..........................................................................................................................133 3.32 DataExporter......................................................................................................................138 3.33 DataGrid............................................................................................................................142 3.34 DataList.............................................................................................................................149 3.35 DataScroller.......................................................................................................................153 3.36 DataTable...........................................................................................................................157 3.37 DefaultCommand..............................................................................................................182 3.38 Diagram.............................................................................................................................184 3.39 Dialog................................................................................................................................188 3.40 Drag&Drop........................................................................................................................193 3.40.1 Draggable...................................................................................................................193 3.40.2 Droppable..................................................................................................................197 3.41 Dock..................................................................................................................................202 3.42 Editor.................................................................................................................................204