Is there dynamic content in this page? If not, there's no real loss in
creating a new one for each request - this is very inexpensive. If there
is, just cache it somewhere in your service layer or the application, etc...
Components (including pages) should generally not be reused for multiple
Let say your FAQPage loads data from the database.
You could put an instance of that page at your MyWicketApplication. Like
this:
MyApp extends WebApplication {
private FAQPage faqPage;
public FAQPage getFAQPage() {
return faqPage;
}
protected void init() {
Ok, forget about it... Components are NOT Thread safe... :-)
Just make FAQPage a Stateless WebPage... ;-)
Cheers,
Bruno Borges
blog.brunoborges.com.br
+55 21 76727099
The glory of great men should always be
measured by the means they have used to
acquire it.
- Francois de La Rochefoucauld
On