Free Sample
+ Collection

Apache Wicket Cookbook

Igor Vaynberg

Master Wicket by example by implementing real-life solutions to every day tasks
RRP $26.99
RRP $44.99
Print + eBook

Want this title & more?

$12.99 p/month

Subscribe to PacktLib

Enjoy full and instant access to over 2000 books and videos – you’ll find everything you need to stay ahead of the curve and make sure you can always get the job done.

Book Details

ISBN 139781849511605
Paperback312 pages

About This Book

  • The Apache Wicket Cookbook covers the full spectrum of features offered by the Wicket web framework
  • Implement advanced user interactions by following the live examples given in this Cookbook
  • Create reusable components and speed up your web application development
  • Another title in Packt's Cookbook series giving clear, step-by-step, and to-the-point recipes to perform common and not so common tasks with Wicket

Chapter 12

Who This Book Is For

This book is for current users of the Apache Wicket framework; it is not an introduction to Wicket that will bore you with tons of theory. You are expected to have built or maintained a simple Wicket application in the past and to be looking to learn new and better ways of using Wicket. If you are ready to take your Wicket skills to the next level this book is for you.

Table of Contents

Chapter 1: Validating and Converting User Input
Performing form-level custom validation
Creating a custom validator
Composing multiple validators into a single reusable validator
Converting string inputs to objects
Chapter 2: Getting Down and Dirty with Forms and Form Components
Creating linked selectboxes
Composing multiple form components into a single reusable component
Preventing multiple form submits
Protecting against spam with a CAPTCHA
Chapter 3: Making Forms Presentable
Changing form component CSS class on validation errors
Using FeedbackPanel to output form component specific messages
Streamlining form component presentation using behaviors
Chapter 4: Taking your Application Abroad
Storing module resource strings in package properties
Retrieving a localized string
Feeding dynamic localized strings to components using StringResourceModel
Using wicket:message to output localized markup
Overriding localized resources on a case by case basis
Chapter 5: Displaying Data Using DataTable
Making cells clickable
Making rows selectable with checkboxes
Exporting data to CSV
Chapter 6: Enhancing your UI with Tabs and Borders
Creating tabs with dynamic titles
Making a tabbed panel play nice with forms
Creating a client-side JavaScript tabbed panel
Using borders to decorate components
Creating a collapsible border
Chapter 7: Deeper into Ajax
Adding Ajax validation to individual form components
Blocking until an Ajax request is complete
Providing Ajax feedback automatically
Chapter 8: Visualizing Data with Charts
Charting with Open Flash Chart
Feeding chart data using a SharedResource
Responding to clicks
Chapter 9: Building Dynamic and Rich UI
Swapping components using a select box
Creating dynamic forms
Creating a dynamic portal layout
Chapter 10: Securing your Application
Creating a login page and forcing the user to log in
Authenticating with OpenID
Securing components using IAuthorizationStrategy
Securing URLs and protecting against cross-site request forgery
Switching from HTTP to HTTPS and back again
Chapter 11: Integrating Wicket with Middleware
Integrating with Spring
Integrating with CDI
Populating repeaters from a JPA query
Creating a model for a JPA entity

What You Will Learn

  • Leverage Wicket to implement a wide variety of both simple and advanced use cases in a narrative that gets straight to the point
  • Make forms work in the crazy world of the Web by learning the ways of Wicket's form processing
  • Simplify localizing your Wicket applications
  • Take the boring out of your forms by discovering how to improve the user experience while simplifying your code at the same time
  • Leverage the built-in Table component to make displaying tabular data a snap
  • Think Wicket's Borders are not very useful? Learn to use them in unexpected places to simplify things
  • See how to integrate with Flash components and create interactive charts at the same time
  • Web 1.0 too boring? Learn how to tame Wicket's AJAX support and bring your application into Web 2.0
  • Simplify your security code by learning various security techniques
  • An application cannot be built with Wicket alone; see how to make it play nice with other frameworks

In Detail

Apache Wicket is one of the most famous Java web application frameworks. Wicket simplifies web development and makes it fun. Are you bored of going through countless pages of theory to find out how to get your web development done? With this book in hand, you don't need to go through hundreds of pages to figure out how you will actually build a web application. You will get practical solutions to your common everyday development tasks to pace up your development activities.

Apache Wicket Cookbook provides you with information that gets your problems solved quickly without beating around the bush. This book is perfect for you if you are ready to take the next step from tutorials and step into the practical world. It will take you beyond the basics of using Apache Wicket and show you how to leverage Wicket's advanced features to create simpler and more maintainable solutions to what at first may seem complex problems.

You will learn how to integrate with client-side technologies such as JavaScript libraries or Flash components, which will help you to build your application faster. You will discover how to use Wicket paradigms to factor out commonly used code into custom Components, which will reduce the maintenance cost of your application, and how to leverage the existing Wicket Components to make your own code simpler.


Read More

Recommended for You

Instant Apache Wicket 6
$ 14.99
Packet Tracer Network Simulator
$ 23.99
Socket.IO Real-time Web Application Development
$ 16.99
WebSocket Essentials - Building Apps with HTML5 WebSockets
$ 16.00
Getting Started with HTML5 WebSocket Programming
$ 17.99