In the final HTML, my form is flattened out, there is only <Form>.

That's because Wicket supports nested forms but HTML does not.
Wicket will hide any inner <form> tags but keep the Form object references.
See section 10.5 Nested Forms of the Wicket Free Guide for more details.
http://wicket.apache.org/learn/books/freeguide.html


In my Wicket markup, the structure is:
PANEL -> FORM -> SecondPanel -> SecondForm

The main PANEL's FORM is being submitted, and validated. But the
"SecondForm" validation never gets called.

So you want to validate the inner nested form when submitting the outer
parent form. I take it that's the first use-case described at:
https://cwiki.apache.org/confluence/display/WICKET/Nested+Forms

all forms enabled
outer form submitted

Outer Middle Inner 
*S*   S      S

Looking over the Form's validateComponents() method it does a post order
traversal of all form components.

I would say, create a quick-start so we better understand how your code is
configured because as far as I recall this is the default behavior. Perhaps
I'm wrong, but at least a quick-start would aid in helping you without
guessing.

To create a quick start see:
http://wicket.apache.org/start/quickstart.html

~ Thank you,
  Paul Bors

--
View this message in context:
http://apache-wicket.1842946.n4.nabble.com/Forcing-Form-Validation-from-anot
her-Form-s-onValidate-tp4660895p4660905.html
Sent from the Users forum mailing list archive at Nabble.com.

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org



---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscr...@wicket.apache.org
For additional commands, e-mail: users-h...@wicket.apache.org

Reply via email to