Wicket 3.1

Wicket In Action

Section 3.1 builds the foundation for the cheese store application:

… … … … … . . chapter03
… … … … … … . . section_3_1
… … … … … … … . Address.java
… … … … … … … . Cart.java
… … … … … … … . Cheese.java
… … … … … … … . cheeses.properties
… … … … … … … . CheesrApplication.java
… … … … … … … . CheesrPage.html
… … … … … … … . CheesrPage.java
… … … … … … … . CheesrSession.java
… … … … … … … . Index.html
… … … … … … … . Index.java
… … … … … … … . logo.png
… … … … … … … . style.css

3_1_1.jpg
3_1_1_1.jpg

The book does not match the CheesrApplication example source exactly. In the example source code there is:

  /*
   * Removed the getHomePage() override, as this application does not match
   * the cheese store 100% to fit the overall examples.
   */
3_1_1_4.jpg
3_1_1_5.jpg

Again, the book does not match the provided source code for the session object.
In the source there is:

/*
 * Extends WiaSession instead of WebSession to make the 
 * cheesr application work within the examples.
 */
public class CheesrSession extends WiaSession {

WiaSession is down in the common package:
… … … … … . . common
… … … … … … . WiaSession.java

3_1_1_6.jpg

The style.css file below is where id="container" and id="content" is defined.
For now, the web page has nothing but an image in it. There is a trick with the style.css file for putting the image file in.

3_1_1_7.jpg3_1_1_2.jpg
3_1_1_3.jpgwicket_3_1.jpg
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License