Cherry
Cherry

Reputation: 33524

How intercept page creation in wicket?

It is needed to call setVersioned(false) to all pages in application. Is there a way to call this method from, say, IComponentInstantiationListener, which calls such method whenever new page is created?

P.S. It is possible to create a base class and use it everywhere, but it lead to modify all page classes :(

Upvotes: 0

Views: 93

Answers (1)

martin-g
martin-g

Reputation: 17503

You can use application.getPageSettings().setVersioned(false).

Check how Page#isVesioned() works.

Upvotes: 2

Related Questions