Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Download
Standard view
Full view
of .
Look up keyword or section
Like this
1Activity

Table Of Contents

Unique contents in this book
Target audience and prerequisites
Acknowledgments
Chapter 1Getting Started with Wicket
What's in this chapter?
Developing a Hello World application with Wicket
Installing Eclipse
Installing Tomcat
Installing Wicket
Creating a Hello Word application
Generating dynamic content
Common errors in Wicket applications
More rigorous version of the template
Simpler version of the template
Page objects are serializable
Debugging a Wicket application
Summary
Chapter 2Using Forms
Developing a stock quote application
Mismatch in component hierarchy
Using a combo box
Inputting a date
Displaying feedback messages
Marking input as required
Using the DatePicker
Chapter 3 Validating Input
Postage calculator
Using an object to represent the request
Making sure the page is serializable
What if the input is invalid?
Null input and validators
Validating the patron code
Displaying the error messages in red
Displaying invalid fields in red
Creating a feedback label component
Validating a combination of multiple input values
Pattern validator
Chapter 4Creating an e-Shop
Creating an e-shop
Listing the products
Using a model for the Labels
Showing the product details
Implementing a shopping cart
How Tomcat and the browser maintain the session
The checkout function
Implementing the login function
Implementing the checkout function
Protecting a bunch of pages
Implementing logout
Chapter 5 Building Interactive Pages with AJAX
A sample AJAX application
Refreshing the question only
Refreshing the answer itself
Giving rating to a question
A common mistake with models
Making the form reusable
Using a modal window to get the rating
Having multiple questions
Falling back if Javascript is disabled
Chapter 6Supporting Other Languages
What's in this chapter
A sample application
Supporting Chinese
An easier way to insert a localized message
Internationalize the page content
Letting the user change the locale
Localizing the full stop
Displaying a logo
Localizing the logo
Creating Image components automatically
Creating a license page
Creating PageLink components automatically
Observing the output encoding
Eliminating the Change button
Creating a phone book
Listing the entries in alternating colors
Storing the styles in a file
Displaying the entries in pages
Sorting the entries
Setting the styles
Making the first name a link
Adding a delete button
Moving the page links to the bottom
Customizing the message in the NavigationToolbar
Downloading a photo
Reading the bytes from an arbitrary source
Reading the bytes from a file
Displaying a photo
Allowing users to bookmark a page
Stateless vs stateful pages
setResponsePage() treating pages as stateful?
Making the View link bookmarkable
Using nice URL
Uploading a photo
<wicket:link> for bookmarkable pages
Chapter 9Providing a Common Layout
Providing a common layout
Using components in the abstract part
Turning the menu into a component
Using the Border component
Two varying parts?
Chapter 10Using Javascript
Are you sure to delete it?
Reusing the confirm button
Generating the call to Javascript at runtime
Using a namespace for the Javascript
Putting the Javascript into a file
Chapter 11Unit Testing Wicket Pages
Developing a calculator
Creating the Home page
Using setUp()
Providing a list of operators
Implementing minus
Unit testing the History page
Serialization error
Implementing the Clear link
Creating the default CalculationSource
Logging each calculation
Refactoring
Creating the default CalculationSink
Running all the tests
Implementing validation
Integration testing
Testing AJAX functions
Developing a banking application
Setting up PostgreSQL
Hard coding some bank accounts
Transferring some money
Using a transaction
Connection pooling
Concurrency issues
Business transaction
Dividing the application into layers
Reducing the size of the session
Chapter 13Using Spring in Wicket
Examining the gluing code
Using Spring to manage dependencies
Using the class of the field to look up the bean
Will a Spring bean be serialized?
Using Spring to simplify transaction handling
Setting the default transaction isolation level
Unit testing a page that uses Spring beans
Stateful Spring beans
Chapter 14Using JPA & Hibernate in Wicket
Setting up Hibernate
Using JPA to access the database
Power of layering
Chapter 15Deploying a Wicket Application
Development mode
Distributing your application
References
Alphabetical Index
0 of .
Results for:
No results containing your search query
P. 1
Enjoying Web Programming With Wicket

Enjoying Web Programming With Wicket

Ratings: (0)|Views: 1,224|Likes:
Published by Aila Cherim

More info:

Published by: Aila Cherim on Apr 20, 2012
Copyright:Attribution Non-commercial

Availability:

Read on Scribd mobile: iPhone, iPad and Android.
download as PDF, TXT or read online from Scribd
See more
See less

04/20/2012

pdf

text

original

You're Reading a Free Preview
Pages 4 to 410 are not shown in this preview.

You're Reading a Free Preview

Download
scribd
/*********** DO NOT ALTER ANYTHING BELOW THIS LINE ! ************/ var s_code=s.t();if(s_code)document.write(s_code)//-->