Struts2 is new to me, and I don't know all the ins and outs -- I am hoping someone reads this and has a useful pointer for debugging this issue, as I've banged my head on it for several days with no progress.
I'm using Struts version 2.3.16.3.
I have a problem wherein the validation-framework fails to call my custom validator: "storename".
Here's what we know:
The Validator Works on another page in the application. This other page successfully uses the validator in exactly the same manner as my new page. In both pages the validator is referenced in a validation-framework xml file as follows (these files differ only in the name of the field to be validated)
The Validator Framework XML is being loaded. Notice that the sample above has two field-validators on the storeName field. The first one, "requiredstring" is called in all cases (as are most of the other field validators on the page, the single exception being "storename").It's not an accessor problem. Notice again that the example has two field-validators on the storeName field, and the first one is always called.
Other Clues:
Only client-side validators are working. I don't know if this is much of a clue, but: My validator requires the database, therefore is a server-side validator. All the other validators can be checked client-side, and they do seem to be checked without hitting the server at all (as far as I can tell).This page has lots of javascript, perhaps something that interferes with the invocation of server-side validation.
Questions:
Is there something special I need to do to support server-side validation? Disable client-side validation perhaps? I've found no discussion along these lines.Are there any known problems with javascript interfering with the functionality of the validation framework?
Many thanks if you've read this far