>From one of my developers:
When using the VALIDATE event to validate form details, the validation method
is called several times.
Eg.
@OnEvent(EventConstants.VALIDATE)
void validateChooseFolderForm() {
...
}
Is called at least three times, executing different sections of the code each
time. Each time it is called, the test values show as null in Eclipse debug
mode, though I suspect it is being run once per field in the form. The third
time it is run, a NullPointerException is thrown by the "else if
(!isFolderNameUnique())" line.
Workaround is to change to @OnEvent(EventConstants.VALIDATE_FORM). This only
calls the validate method once per submission.
This seems to have affected us in two places when deprecated events were
updated to the new version. Is this a known issue?
Thanks,
Andy