If you want to ensure that at least one item is selected from the mulit-select list you can use "required" just like with the drop-down. If you need something more (like at least 2 items selected), to use Validator you will need to create a custom rule.

-Bill Siggelkow

Priya Jotwani wrote:

Hi,



I have a JSP Page where I have a multiple selection Listbox. When the
user submits the page, there should be some values in this listbox. How
do I make the validations for the same in validator.xml ?


I have done similar thing for dropdown by the following entry in
validator.xml



<field property="reportType" depends="required ">

            <arg0 key="prompt.reportType"/>

</field>



How can I achieve the similar thing for Multi Select ListBox ?



TIA,

Priya




---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to