Chapter 9. Images, CSS, and scripts: working with resources

In this chapter:

  • Including images, scripts, and stylesheets using packaged resources
  • Providing downloadable content with dynamic resources
  • Integrating third-party libraries using resources

Up to now, we’ve mainly been talking about components. As powerful as they are, there are some things you can’t do with them. For example, you can’t render PDFs with them, and they don’t provide a direct answer to how images or CSS files should be handled.

This is where Wicket resources come in. Wicket resources are objects that can process requests independently from pages. They typically represent things like images and files (for instance, JavaScript and CSS files); but as you’ll see in this ...

Get Wicket in Action now with O’Reilly online learning.

O’Reilly members experience live online training, plus books, videos, and digital content from 200+ publishers.