...
You should also search wicket-user mailing list for performance and scalability or simply use performance-scalability-tipsas your starting point.
How can I keep my images (or other resources that don't need to be handled dynamically) in a directory below the root of the context?
Make the image references in your HTML be relative:
<img src="images/logo.png"/>
Put this in the <head></head>
section of your HTML file:
Code Block |
---|
<wicket:remove>
<base href="../../../path/to/your/webapp/folder"/>
</wicket:remove>
|
The <base>
tag will tell your browser to prepend this path to relative paths in the HTML file. The <wicket:remove>
tags will tell Wicket to remove the <base>
tag in the pages that it serves. Wicket's default behavior is to change relative paths in your HTML to paths relative to the context root, just as the <base>
tag did when you viewed the file locally.