User Guide 5.0
Total Page:16
File Type:pdf, Size:1020Kb
USER GUIDE 5.0 Author Çağatay Çivici First Edition PrimeFaces User’s Guide 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.........................................................................................................................18 3.3 AjaxExceptionHandler..........................................................................................................20 3.4 AjaxStatus..............................................................................................................................21 3.4 AutoComplete........................................................................................................................24 3.5 BlockUI.................................................................................................................................34 3.6 BreadCrumb..........................................................................................................................37 3.7 Button....................................................................................................................................39 3.8 Cache.....................................................................................................................................42 3.9 Calendar.................................................................................................................................44 3.10 Captcha................................................................................................................................54 3.11 Carousel...............................................................................................................................57 3.12 CellEditor............................................................................................................................63 3.13 Chart....................................................................................................................................64 3.13.1 PieChart.......................................................................................................................65 3.13.2 LineChart.....................................................................................................................67 3.13.3 BarChart.......................................................................................................................70 3.13.4 DonutChart..................................................................................................................72 3.13.5 BubbleChart.................................................................................................................74 3.13.6 Ohlc Chart....................................................................................................................76 3.13.7 MeterGauge Chart.......................................................................................................78 3.13.8 Combined Chart...........................................................................................................80 3.13.9 Multiple Axis...............................................................................................................81 3.13.10 Date Axis...................................................................................................................83 3.13.11 Interactive Chart........................................................................................................84 3.13.12 Export........................................................................................................................85 3.13.13 Static Images..............................................................................................................86 3.13.14 Skinning.....................................................................................................................87 3.13.15 Extender.....................................................................................................................88 3.13.16 Chart API...................................................................................................................89 3.14 Clock....................................................................................................................................94 3.15 Collector..............................................................................................................................96 3.16 Color Picker.........................................................................................................................97 2 PrimeFaces User’s Guide 3.17 Column..............................................................................................................................100 3.18 Columns.............................................................................................................................102 3.19 ColumnGroup....................................................................................................................104 3.20 CommandButton................................................................................................................105 3.21 CommandLink...................................................................................................................110 3.22 Confirm..............................................................................................................................114 3.22 ConfirmDialog...................................................................................................................115 3.23 ContentFlow......................................................................................................................118 3.24 ContextMenu.....................................................................................................................120 3.25 Dashboard..........................................................................................................................123 3.26 DataExporter......................................................................................................................128 3.27 DataGrid............................................................................................................................131 3.28 DataList.............................................................................................................................137 3.29 DataScroller.......................................................................................................................141 3.30 DataTable...........................................................................................................................145 3.31 DefaultCommand..............................................................................................................170 3.32 Dialog................................................................................................................................172 3.33 Drag&Drop........................................................................................................................177 3.33.1 Draggable...................................................................................................................177 3.33.2 Droppable..................................................................................................................181 3.34 Dock..................................................................................................................................186 3.35 Editor.................................................................................................................................188 3.36 Effect.................................................................................................................................192 3.37 FeedReader........................................................................................................................195 3.38 Fieldset..............................................................................................................................196 3.39 FileDownload....................................................................................................................199 3.40