RE: Forcing Form Validation from another Form's onValidate()

2013-08-15 Thread eugenebalt
Looking further at my code, I see that the custom validators from the inner form DO get called; but the one that doesn't get called is .setRequired(true). There is one component in the inner form which is setRequired(true). And that validation is bypassed for some reason, although all the other

RE: Forcing Form Validation from another Form's onValidate()

2013-08-15 Thread eugenebalt
Actually, I figured it out. All the validators are getting called from the inner form. But there was an NullPointerException in the first validator which blocked all the others and I wasn't seeing them. Thanks for your help. -- View this message in context:

Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
I have a Panel (P1) which contains its own form (P1_F1). The P1 panel also contains another panel inside itself, P1_A, which has its own inner form (let's call it P1_A_F1). Whenever the P_F1's validation is called, I also have to call the P1_A_F1 form validation. It doesn't get called

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread Paul Bors
@wicket.apache.org Subject: Forcing Form Validation from another Form's onValidate() I have a Panel (P1) which contains its own form (P1_F1). The P1 panel also contains another panel inside itself, P1_A, which has its own inner form (let's call it P1_A_F1). Whenever the P_F1's validation is called, I

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread eugenebalt
In the final HTML, my form is flattened out, there is only Form. 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. -- View this message in context:

RE: Forcing Form Validation from another Form's onValidate()

2013-08-14 Thread Paul Bors
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.