Chapter 4. Understanding models

In this chapter:

  • Introducing models
  • Using property models to save code
  • Using detachable models to keep your data fresh
  • Nesting models to make the most of property and detachable models

With all those cheese stores sprouting on the web, soon we’ll be able to buy lots of cheese online. And our business plan wouldn’t be complete without a way to use that cheese. Cheese features as a main ingredient in many recipes, especially Italian recipes. Lasagna is not only a great Italian dish featuring heaps of cheese, it’s also suitable as a metaphor for software: a lasagna gets better as you add more layers— but only to a point. (Spaghetti is also a great Italian dish that’s improved by the addition of cheese, but somehow ...

Get Wicket in Action now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.