In HTML, only the selected values get sent to the server, so when no values
in the multi-select are selected, nothing gets sent to the server for that
property.  Make sure your reset() method clears out the values for that
property and you should be ok.
 (*Chris*)

On 10/25/06, Chetan Pandey <[EMAIL PROTECTED]> wrote:

Hi All:



I have a JSP Form in which one field is a multi-select drop-down box. An
array of String is used to represent it



I am facing this problem when trying to "Edit" stuff.



The Drop-down initially has many different values selected.



If I try to change selections everything is Fine. Irrespective of if I
increase the number of selections or decrease them as long as I select at
least one.



However, if I try to deselect all then the Original Selected Values remain
as it is and are passed to the Form.



The only Solution - which is a Workaround is that the User selects the
dummy
Item "Choose Hotel Name" which has a value of "0".



The following is my drop-dwon Code in the JSP Page.



<html:select name="subregionForm" property="holidexCodes"  multiple="true"
size="4" >

<html:option value="0">

Choose Hotel Name

</html:option>

<html:options name="holidexCodeVector" />

</html:select>



Is this a known bug in IE.



Thanks.



Chetan











Reply via email to