What are people's suggestion on getting a validator to run only if a
particular condition exists? For example, suppose I have a method that
both serves a form and processes a form depending on whether the method
receives a GET or POST. I only want to validate in the latter case.

I suppose I could create a validator that inherits from the validator I
want to run conditionally, but I'm not sure that's the most elegant
solution.

Thoughts?

Reply via email to