nested:select  multiple select box not storing empty values, i.e. retaining 
previous values if none is selected.
----------------------------------------------------------------------------------------------------------------

                 Key: STR-2927
                 URL: http://issues.apache.org/struts/browse/STR-2927
             Project: Struts 1
          Issue Type: Bug
          Components: Taglibs
    Affects Versions: 1.2 Family
         Environment: Windows XP professional
            Reporter: Sreedhar Mada
            Priority: Critical


I'm using nested:select tag in my application to hold multiple values. Here is 
the HTML for my element.

<select name="testBox" multiple="multiple" size="3" ><option 
value="1">ABC</option>
<option value="3" selected="selected">DEF</option>
<option value="4">GHI</option>
<option value="6" selected="selected">JKL</option>
<option value="9">MNO</option>
<option value="44" selected="selected">PQR</option>
<option value="66" selected="selected">STU</option>
<option value="08" selected="selected">VWX</option>
<option value="11" selected="selected">YZA</option>
<option value="21111">BCDE</option>
<option value="1111">FFFFF</option>
<option value="0000">RGEV</option>
<option value="209">TQPN</option>
<option value="102">MTR</option>
</select>


This element represents the data I previously saved in the database. If I 
re-visit the application and deselect all the options selected in this box, it 
is not reflecting to show empty list. I'm using a string array in my form bean 
to hold these values. 
Once all the values are deselected, the String array should be empty or null. 
But  it is still holding the previous set of values.

Instead of deselecting all the options, If I do any other action(selecting 
other values or deselecting one or more by keeping atleast one value selected)  
it works fine.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/struts/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to