Is Wicket cookbook the most comprehensive wicket book around? Is it available in hard copy too? Sent via my BlackBerry Device from MTN
-----Original Message----- From: Andrea Del Bene <[email protected]> Date: Fri, 20 May 2011 18:08:06 To: <[email protected]> Reply-To: [email protected] Subject: Re: Wicket Cookbook - preventing multiple form submits By the way, I gave for granted that you move back from the view person panel to the create person one with browser 'back' button. Is it correct or do you use a specific link or button? > Hi Andrea, > As you have suggested, on the SubmitOnceForm class, I've added two > variables, page reference and page relative path, > on calling process I get the copy the values: > public void process(IFormSubmittingComponent submittingComponent) > { > pageReference = getPage().getPageReference(); > pageRelativePath = getPageRelativePath(); > if (isAlreadyProcessed())... > .. > } > And I am now getToken has the returns those copied values: > private FormToken getToken() > { > return new FormToken(pageReference, pageRelativePath); > } > > That is the exception thrown solved. Thank you very much for taking the > time. Seriously, I really appreciate it. > I still have the problem that when I click the save button, If I go back, > the fields are blank. > If I fill the fields again and navigate back and forth with the internet > browser arrows then the form fields keep their values. > I suspect it has something to do with the submit button. > That's something I need to investigate further. > Cheers, > Lucas > > -- > View this message in context: > http://apache-wicket.1842946.n4.nabble.com/Wicket-Cookbook-preventing-multiple-form-submits-tp3535159p3538263.html > Sent from the Users forum mailing list archive at Nabble.com. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected] > > > --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
