Hi,
I have some fields on a form which "might" need to be validated. Eg: When radio button 1 is chose, then validate field 1, ignore field 2. When radio button 2 is chose, then validate field 2, ignore field 1.
Thus, this is a bit contradicting with the common validation which
struts provide, ie: if field 1 validation flag is set to true, then validation would always take place.
This become worst as I am using the struts javascript validation - <html:javascript> tag, which would generate the javascript for validation during runtime.
So, is there anyway for me to enable field validation dynamically instead of hard-coding.
Perhaps, writing my own javascript for those field is the easiest way but then the internationalization problem would pop up because error message is not taken from the ApplicationResources.properties anymore.
Please advice.
Thanks in advance.