Wicket allows nested forms because one component doesn't know if it is
inside a form or not. This is typical for component frameworks that
try to maximize component reuse and encapsulation. That the HTML spec
says otherwise doesn't mean a lot to us, as we are looking at the
Component part.

The child forms are replaced with span tags, and the whole form is
submitted. The only values that are actually processed are the fields
that are part of the child form. The rest keeps its input but that is
the only thing that happens.

Martijn

On 10/9/07, martinf <[EMAIL PROTECTED]> wrote:
>
>
>
> Michael Sparer wrote:
> >
> > I know from the wicket 1.3 API that forms can be nested and I also know
> > that each form has to be submitted separately.
> > My problem therefore is that the captcha-form's onSubmit button doesn't
> > get called if someone submits the outside form (= the form the component
> > is nested in). Is there a possibility to submit the 'inner' form as well
> > when the 'outer' form is submitted? I'm also open for other suggestions,
> > maybe there's already a Wicket best-practise solution, which would be nice
> > :-)
> >
> Reading
> http://www.w3.org/TR/html401/interact/forms.html#h-17.3
> plus the interpretation, two lines above, in this link:
> http://www.w3.org/TR/html401/intro/sgmltut.html#h-3.3.4
> I'd say, maybe wicket alows it, but in html they can't.
>
> But maybe the capacha don't need its own form as all form components are
> submitted, so just the components representing the capacha need to be added
> to the form. To encapsulate those FormComponentPanel might be of help.
>
> Martin
>
> --
> View this message in context:
> http://www.nabble.com/Decouple-parts-of-a-form-tf4591493.html#a13111035
> Sent from the Wicket - User mailing list archive at Nabble.com.
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>


-- 
Buy Wicket in Action: http://manning.com/dashorst
Apache Wicket 1.3.0-beta3 is released
Get it now: http://www.apache.org/dyn/closer.cgi/wicket/1.3.0-beta3/

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to