Issue Details (XML | Word | Printable)

Key: STR-2927
Type: Bug Bug
Status: Closed Closed
Resolution: Not A Problem
Priority: Critical Critical
Assignee: Unassigned
Reporter: Sreedhar Mada
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Struts 1

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

Created: 15/Aug/06 07:33 PM   Updated: 04/Jul/07 05:31 AM
Return to search
Component/s: Tag Libraries
Affects Version/s: 1.2 Family
Fix Version/s: None

Environment: Windows XP professional

Flags: Important


 Description  « Hide
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.

 All   Comments   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
Niall Pemberton made changes - 28/Nov/06 06:40 PM
Field Original Value New Value
Status Open [ 1 ] Resolved [ 5 ]
Resolution Not A Problem [ 7 ]
Paul Benedict made changes - 04/Jul/07 05:31 AM
Status Resolved [ 5 ] Closed [ 6 ]