Chapter 7. Composing your pages

 

In this chapter:

  • Grouping components with WebMarkupContainers, Panels, and Fragments to maximize reuse
  • Creating consistent, maintainable layouts with markup inheritance and panel replacement

One of the biggest challenges of designing and building a lasagna is to create as many layers as you can possibly fit in the baking dish, without turning the lasagna in one giant noodle. Years of empiric research have shown that the best lasagna has between five and seven layers. According to our recipe, this means stacking a thin layer of sauce, a couple of salami slices, cheese slices, a thin layer of spinach, and a layer of lasagna noodles on top of each other, and repeating until the only thing we have room for on top is a thin layer of sauce.

The secret to a great lasagna lies in how thick you make each layer and how you distribute the ingredients. The thickness of the layers and the careful distribution of the ingredients make the difference between a solid, perfect slice of lasagna that stands on your plate ready to be cut to pieces, and a lasagna that turns into Italian soup when you dish it up.

7.1. Grouping components

7.2. Page composition: creating a consistent layout

7.3. Summary

sitemap