Chapter 5. Working with components: labels, links, and repeaters

 

In this chapter:

  • Components for displaying text
  • Navigating or responding to user actions with link components
  • Repeating markup and components using repeaters
  • Creating conditional markup by modifying the visibility of components

In the previous chapter, we started building our own lasagna beginning with the noodles that separate each layer. But we haven’t talked about the ingredients that go in each layer. This chapter and the next two are divided into sections that discuss the ingredients that make up your pages: components. There are lots of components, so we’ve divided them into categories based on their usage. Table 5.1 provides an overview of these categories and some components that fall into each.

This list may seem short, but that’s because we’re saving some components for the next chapter when we talk about forms. And if we listed all the components—well, the table would be too long.

Before we start with our first category, we’ll first briefly reacquaint you with Wicket components.

5.1. What are components?

5.2. Displaying text with label components

5.3. Navigating using links

5.4. Responding to client actions with a link

5.5. Using repeaters to repeat markup and components

5.6. Performing common tasks with components

5.7. Summary

sitemap