hm.... It is a little hard for me to image your discussion...
anyway, I tried to override isVersioned() to return false but
it doesn't work at all....
After dig into the source code, I found that all pages are registered
in session and it's possible to remove page directly:
add(new Form("saveBook") {
protected void onSubmit() {
//commit to database...
setResponsePage(new BookHomePage());
getSession().remove(getPage());
}
});
and now it works !
Is this a safe way to invalidate Page ?
--
Ingram Chen
Java [EMAIL PROTECTED]
Institue of BioMedical Sciences Academia Sinica Taiwan
blog: http://www.javaworld.com.tw/roller/page/ingramchen
- Re: [Wicket-user] How do I protect re-submission ? Ingram Chen
- Re: [Wicket-user] How do I protect re-submission ? Johan Compagner
