Is it possible in Struts 2 to avoid several validations (defined as anotations) depending on the value of a given field? Something like: "if radiobutton has value x do not validate fields a, b and c".
This would be useful to me since I'm developing a JSP page (model driven) and I'm not showing all the fields at the same time, the visible ones depend on a radiobutton value. However, when submiting, the validators from the hidden fields are "activated" and the validation process fails. So, I want to to ignore the hidden ones, is there a way to do this?
Thanks!