O'Reilly logo

Wicket in Action by Eelco Hillenius, Martijn Dashorst

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 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 ...

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