Static Pages

These examples show how to serve files (or more generally data streams) by reusing the powerful Wicket concepts like IResourceStream, IRequestTarget and IRequestTargetUrlCodingStrategy.

Static pages are stateless pages that do not make use of Wicket Components, in fact those pages can be also considered dynamic if you take the example of an XSLT transform.

Here is an overview of the relevant classes:

Hello World as a Static Page

Hello World as a Static Page with XSLT layout

NOTE: it is possible to serve any kind of content using this method, not only HTML files.