Are you talking something like
<form> <input type="text" name="bla"> <form> <input type="text" name="form2bla"> </form> </form>
If so, then its most likely not possible. Furthermore, it is not standard HTML, and not guaranteed to work on any browser - whatever you are doing with nested forms needs to be rethought so as not to use them.
If that is not what you are talking about, we may need further explanation (with possibly a sample of the form...)
Matt
Ben wrote:
Hi
Within my normal form there is a nested form. The nested form has custom validation. The validate attribute of the action is set to false. My question is how do I validate the normal form and automatically validate the nested form with my custom validation method?
E.g.
NormalForm () { NestedForm nested = new NestedForm(); }
NestedForm () { validate(...) { // checking the data here } }
So my action would validate the form as:
MyAction () { NormalForm nForm = (NormalForm) form; ActionErrors errors = nForm.validate(); // Validate the data }
The problem here is that it validates the NormalForm and ignores my validation in the NestedForm.
I hope this question makes sense to you... :)
Thanks, Ben
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]