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:
http://apache-wicket.1842946.n4.nabbl
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 one
In the final HTML, my form is flattened out, there is only .
That's because Wicket supports nested forms but HTML does not.
Wicket will hide any inner 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/
In the final HTML, my form is flattened out, there is only .
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:
http://ap
@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 validati
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 automatical