Wicket: Serving static files

I recently came across a situation where I have to serve some static html files in a wicket application. Though it’s pretty simple, thanks to the ultra easy way wicket offers to write components, things can get tricky especially with the request path.

So I thought of documenting this for my own future reference and for the sake of the community.

Without wasting time, let me quickly explain how to serve static files with wicket (blatantly copied from wicket-examples).

Assumptions

I assume that you are using wicket 1.4.x as that’s the latest stable version at the time of writing . . . → Read More: Wicket: Serving static files

Categories

A sample text widget

Etiam pulvinar consectetur dolor sed malesuada. Ut convallis euismod dolor nec pretium. Nunc ut tristique massa.

Nam sodales mi vitae dolor ullamcorper et vulputate enim accumsan. Morbi orci magna, tincidunt vitae molestie nec, molestie at mi. Nulla nulla lorem, suscipit in posuere in, interdum non magna.