Prashant Khanal wrote:
@RequiredFieldValidator(key="sequence.selectedLevelsNotEmpty", message =
"one or more levels must be selected")
public void setSelectedLevels(List<Long> selectedLevels) {
this.selectedLevels = selectedLevels;
}
As i have to validate the right select element of the optiontransferselect
so i used the setter property of the selectedLevels.
Hope i am missing something as upon submit no validation error is thrown.
Try including a getter for this property as well. Validation is
performed on the action instance so it will need to call
getSelectedLevel() to validate this property
I also can't recall whether these validators work on collections or not.
regards,
Jeromy Evans
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]