I have 2 radio buttons. R1 and R2. If R1 is clicked, we have to validate FOUR fields. F1,F2,F3,F4. But in case of R2, only THREE F1,F2,F3.
Joined: Feb 15, 2005
i agree with merrill that there are certainly limitations to the validation framework and from time to time you'll have to ask yourself whether or not it's worth it.
with that said, the validation framework is an extremely powerful tool and wonderfully designed for expandability for server-side validations. there IS a learning curve, but once you get over the hump, the world is in your hand. i think i've encountered many, many types of strange validations and have been able to tackle them all using the framework declaratively. there are a couple of cases i could think of that i had to pull the validations INSIDE the action classes and use struts message handling instead. still, messaging, if set up correctly, interact well with validation error display to create a seemless 'validation'.
-/a<br />certified slacker...yes, my last name is 'do' - <a href="http://www.luckycouple.com" target="_blank" rel="nofollow">luckycouple.com</a>