Hi Martin, thanks for the explanation!
Why is the first call done to submit my form? Because my app is doing an 'expensive' search query for every instantiation, thus I would like to trigger the search only with the necessary submitted query. Can I somehow distinguish a request with an empty q and the pre-query with an empty q when submitting a form? Or should I place my expensive operation somewhere else? Regards, Peter. > Hi Peter, > > Here is how it should work: > - Home page constructor is called initially without 'q' thus null > - the submit makes a POST call to Form.onSubmit() (the print is not called > because the page is not re-instanciated, unless it is stateless) > - onSubmit() calls setResponsePage(Class, PageParameters) which causes a > redirect to the Home page with the parameters you pass > - HomePage's ctor is called with 'q' and a value > > This is how it should be! Now you take a look and tell us where are the > differences. --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org