Chapter 8. Developing reusable components

In this chapter:

  • Learn the advantages of creating custom components
  • Create complex compound components that include their own navigation

In chapter 7, we looked at group components strategies. You learned that panels are particularly well suited for creating components that can be reused in a variety of contexts, without the need to know anything about their internal structure.

In this chapter, we’ll look at creating reusable components. The more generic and context-independent components are, the easier it is to reuse them. We’ll first look at examples of generic components. We’ll start with a locale component, which is simple; later, we’ll add features to illustrate how you can create compound ...

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.