Struts2 conditional validation -
is possible in struts 2 avoid several validations (defined anotations) depending on value of given field? like: "if radiobutton has value x not validate fields a, b , c".
this useful me since i'm developing jsp page (model driven) , i'm not showing fields @ same time, visible ones depend on radiobutton value. however, when submiting, validators hidden fields "activated" , validation process fails. so, want to ignore hidden ones, there way this?
thanks!
i using ognl , expression validator apache struts 2 documentation
i using xml because imho annotations bit intrusive, , rather not use them everywhere. sure can use annotation version validation annotation.
hope helps...
Comments
Post a Comment