You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by George Steimer <ge...@tsgrp.com> on 2003/11/18 20:18:30 UTC
Complex Form Validation
We are trying to perform some complex form validaion with the new Validator plugin. Here is what we are trying to do:
1 -- validate a form field based on other form fields
2 -- validate a form field based on div style settings
I know that I could solve the first problem with the old validation architecture, but is there a way to do that through the validator.xml? I'm not sure about the second problem. The code looks something like this
<div id="myDiv" style="display: none">
//my form element here
</div>
So is it possible to only validate the form element above only if the enclosing div display is block? I've looked, but couldn't find anything explaining how to go about this. Any ideas?
Thanks in advance,
George
---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org