O'Reilly logo

Advanced JavaServer Pages™ by David M. Geary

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Chapter 4. TEMPLATES

Topics in this Chapter

  • Encapsulating Layout

  • Optional Content

  • Role-based Content

  • Defining Regions Separately

  • Nesting Regions

  • Extending Regions

  • Combining Features

  • Region Tag Implementations

  • Conclusion

Window toolkits typically provide three types of objects that greatly facilitate the implementation of flexible, extensible, and reusable applications: components, containers, and layout managers. Components are graphic objects such as buttons, menus, or lists, and containers are groups of components. Layout managers position and size a container's components.[1]

Components, containers, and layout managers are typically implemented with two design patterns: Composite and Strategy.[2] The Composite design pattern, used to implement components ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required