Hi Martin, Thank you for your answer.
What about doing like google and others? I mean save (submit) on lost focus... So the model will get updated every time you leave a field. Any good references? thank you. El lun, 18-02-2013 a las 11:02 +0200, Martin Grigorov escribió: > Hi, > > I think this is not possible if you use two root forms. > You need to submit them by order (first A and then B) to have the values. > > You can use nested forms though. B should be inside A. > This way when you submit B Wicket will post all the data (for both A and B) > but will process only form B. The values of the form components of A will > be available thru request.getPostRequestParameters().get("someFromA") > > > On Mon, Feb 18, 2013 at 10:56 AM, Gonzalo Aguilar Delgado < > gagui...@aguilardelgado.com> wrote: > > > Hi Martin, > > > > Ok. I will take a look to this but I think it's not the right solution. > > > > Suppose this: > > ------------------------- > > PAGE Example| > > --------------------------------------------------------------- > > A <- This is a form. | B <- This is a form.| > > ---------------------------------------------------------------| > > > > > > Supppose that you want to process form B with Ajax but you also need the > > information the user typed on A. > > > > How can you do it? With ajax of course? > > > > I will submit A so the model of A gets updated, and after I will submit > > B. So B has the model of A and B loaded. > > > > Is there a better way to do it? > > > > > > > > El lun, 18-02-2013 a las 10:10 +0200, Martin Grigorov escribió: > > > > > > > > Use org.apache.wicket.ajax.form.AjaxFormSubmitBehavior#onAfterSubmit > > > if you > > > want to execute something *after* Form#onSubmit() > > > > >