Apache Wicket Cookbook.pdf

上传者: drjiachen | 上传时间: 2022-03-25 16:16:15 | 文件大小: 4.53MB | 文件类型: -
Table of Contents Preface 1 Chapter 1: Validating and Converting User Input 7 Introduction 7 Performing form-level custom validation 7 Creating a custom validator 12 Composing multiple validators into a single reusable validator 18 Converting string inputs to objects 23 Chapter 2: Getting Down and Dirty with Forms and Form Components 33 Introduction 33 Creating linked selectboxes 34 Composing multiple form components into a single reusable component 39 Preventing multiple form submits 45 Protecting against spam with a CAPTCHA 55 Chapter 3: Making Forms Presentable 61 Introduction 61 Changing form component CSS class on validation errors 62 Using FeedbackPanel to output form component specific messages 65 Streamlining form component presentation using behaviors 67 Chapter 4: Taking your Application Abroad 75 Introduction 75 Storing module resource strings in package properties 76 Retrieving a localized string 80 Feeding dynamic localized strings to components using StringResourceModel 84 Using wicket:message to output localized markup 86 Overriding localized resources on a case by case basis 89 ii Table of Contents Chapter 5: Displaying Data Using DataTable 95 Introduction 95 Sorting 96 Filtering 100 Making cells clickable 106 Making rows selectable with checkboxes 110 Exporting data to CSV 120 Chapter 6: Enhancing your UI with Tabs and Borders 129 Introduction 129 Creating tabs with dynamic titles 130 Making a tabbed panel play nice with forms 136 Creating a client-side JavaScript tabbed panel 140 Using borders to decorate components 143 Creating a collapsible border 148 Chapter 7: Deeper into Ajax 157 Introduction 157 Adding Ajax validation to individual form components 158 Blocking until an Ajax request is complete 162 Providing Ajax feedback automatically 168 Chapter 8: Visualizing Data with Charts 177 Introduction 177 Charting with Open Flash Chart 178 Feeding chart data using a SharedResource 191 Responding to clicks 199 Chapter 9: Building Dynamic and Rich UI 207 Introduction 207 Swapping components using a select box 208 Creating dynamic forms 214 Creating a dynamic portal layout 222 Chapter 10: Securing your Application 235 Introduction 235 Creating a login page and forcing the user to log in 236 Authenticating with OpenID 243 Securing components using 251 IAuthorizationStrategy 251 Securing URLs and protecting against cross-site request forgery 258 Switching from HTTP to HTTPS and back again 260 iii Table of Contents Chapter 11: Integrating Wicket with Middleware 263 Introduction 263 Integrating with Spring 264 Integrating with CDI 268 Populating repeaters from a JPA query 272 Creating a model for a JPA entity 282 Chapter 12 This chapter is not present in the book but is available as a free download from: http://www.packtpub.com/sites/default/files/downloads/ 1605_Chapter12.pdf Index 291

文件下载

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明