instead of setRequired() use isRequired(submittedForm == innerForm) On Fri, May 6, 2011 at 6:04 PM, Tito <njyt...@gmail.com> wrote: > Are these necessarily nested forms? > > 2011/5/5 Alexandru Artimon <aarti...@developmentgateway.org> > >> Hey guys, >> >> When I submit the main form can I prevent the submit of the inner forms? >> >> I have some small forms to add items to the main form. The fields in the >> inner forms have setRequired(true), so when I submit the main form I get >> errors that those fields are empty. Any ideas? >> >> Thanks, >> Alexandru >> >> --------------------------------------------------------------------- >> To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org >> For additional commands, e-mail: users-h...@wicket.apache.org >> >> >
-- Martin Grigorov jWeekend Training, Consulting, Development http://jWeekend.com --------------------------------------------------------------------- To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org For additional commands, e-mail: users-h...@wicket.apache.org