I've got a case (in Wicket 1.4.14) where I want to implement a 'mutually
required' validator on a FormComponent that contains a set of child form
fields.  If all are empty, it's valid.  But if any child has a value
then all become required.

 

My implementation (with the IValidator added to the parent
FormComponent) works fine if all the child fields are valid.  However,
if I add separate validators to any of the child fields and they set an
error, then my mutually required validator on the parent isn't called
since the validation process is terminated early.  This isn't desirable
since I also want the chance to set errors for any empty child fields.

 

Any suggestions?  Thanks -

 

Tom Palmer

Director, Strategic Technology Services

AT&T Hosting & Application Services | 2000 Perimeter Park Drive, Suite
140 | Morrisville, NC 27560

Office: +1 (919) 388-5937 | Mobile: +1 (919) 627-5431

[email protected] <mailto:[email protected]>  

 

Confidentiality Notice and Disclaimer: This e-mail transmission may
contain confidential and/or proprietary information of AT&T that is
intended only for the individual or entity named in the e-mail address.
If you are not the intended recipient, you are hereby notified that any
disclosure, copying, distribution, or reliance upon the contents of this
e-mail is strictly prohibited. If you have received this e-mail
transmission in error, please reply to the sender, so that AT&T can
arrange for proper delivery, and then please delete the message from
your inbox. Thank you. 

 

Reply via email to