Re: problem in validating optiontransferselect element

2008-02-14 Thread Prashant Khanal
Thanks, I will give it a try. On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > I'm not sure if the validators can be applied to collections. > > You can validate it yourself: > - either implement Validateable in your action and check the property > in the corresponding method; or > - ch

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
I'm not sure if the validators can be applied to collections. You can validate it yourself: - either implement Validateable in your action and check the property in the corresponding method; or - check the collection in your execute method and return "input" if its invalid If you action exten

Re: problem in validating optiontransferselect element

2008-02-14 Thread Prashant Khanal
Hello Jeromy, I do have getters for this property as well. I am not been able to find a way out on this. I have to check whether or not the selected list is empty. I could not get any hints from the mailing list archive too. On 2/15/08, Jeromy Evans <[EMAIL PROTECTED]> wrote: > > Prashant Khanal

Re: problem in validating optiontransferselect element

2008-02-14 Thread Jeromy Evans
Prashant Khanal wrote: @RequiredFieldValidator(key="sequence.selectedLevelsNotEmpty", message = "one or more levels must be selected") public void setSelectedLevels(List selectedLevels) { this.selectedLevels = selectedLevels; } As i have to validate the right select element

problem in validating optiontransferselect element

2008-02-13 Thread Prashant Khanal
Hello all, I was able to validate simple input elements like textfield but could not validate optiontransferselect element. Actually i want to show the validation error when the selected list is empty. the code snippet is shown below: The code snippet of the corresponding action class is: priva