I struggled earlier with this. Components bubble up, not down. Your components won't be alerted that the form in your page was submitted.
If you need form fields in components, you either have to put the entire form in the component, or you need to avoid that the form fields depend on form events. On Fri, Dec 11, 2009 at 6:06 AM, Benny Law <[email protected]> wrote: > Hi Jacob, > > It sounds like you have nested forms which is not allowed. > > Benny > > On Thu, Dec 10, 2009 at 11:07 PM, Jacob Mouka <[email protected]> wrote: > > > Hi all (apologies if this is really obvious, but I can't find the info in > > the docs/examples) > > > > I have some sub-components (with form elements) in a form and I want to > do > > some actions when the form is submitted. I've tried something like > > > > void onSubmit() { > > System.out.println("submitted"); > > } > > > > but it doesn't get called on the sub-components, only the parent > component. > > What am I missing? > > > > Thanks, Jacob > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: [email protected] > > For additional commands, e-mail: [email protected] > > > > >
