Struts2 Complex Conditional Validation -
ok i've read loads of 'duplicate' posts on simple examples , mine not fit bill...
i'm looking run conditional validation , want use xml out of box as possible i'm not rewriting basic, out of box validation.
situation: have radio box 2 options validates set of addresses i.e. many form fields not single field dependent on selected
this 1 example have others areas more complicated
what i'm looking ideas on how go ?
i not want use expressions involves many fields after initial condition. other questions answer on not viable
you can't nest validation within xml.
i write bespoke code in validate()
i'm validating many addresses (for example) reusing code difficult without getting field validation map, adding errors , using setfeilderrors(map)
. not use of out of box xml validation.
i validate entire section , remove errors within validate()
doesn't seem correct
interceptors option i'm unsure of how validate 1 address field without other
can point me in right direction please ?
Comments
Post a Comment