the stateless stuff has to recreate the component hierarchy first - eg the form instance has to exist before you can call onsubmit on it :)
however, inside onsubmit you can do any component replacement you want, just like in a non-stateless page. -igor On Thu, May 8, 2008 at 4:36 PM, Joel Halbert <[EMAIL PROTECTED]> wrote: > Hi, > > I've noticed that when submitting a (stateless) Form page the onSubmit() > method of the form is only called once all the Page components have all been > created, and likewise any model objects relating to the form are only > populated once the page components have been rendered. > > This means that it is hard to create dynamic content in the page that is > dependent on the contents of the submitted form without "reloading the page" > using > setResponsePage(MyPage.class, pageParams) at the end of the onSubmit() call > of the form. > > Has anyone else noticed this and is there a way around it? i.e. can the > models be populated before the page components are created? > > Rgs > Joel > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
