Hi,

I have three tags all using the same List of users.
<ww:select label="'Select Test'" name="'user_select'" list="users"
listKey="lastName" listValue="firstName"/>
<ww:radio label="'RadioTest'" name="'user_radio'" list="users"
listKey="lastName" listValue="firstName"/>
<ww:checkboxlist label="'Checkbox Test'" name="'user_checkbox'" list="users"
listKey="lastName" listValue="firstName"/>

Radio and Checkboxlist both give the expected value/key pairs.  Select seems
to ignore the listKey and listValue and uses the toString() method of the
User object for both the value and the key.

I looked at checkboxlist.vm, select.vm, and radio.vm, and it looks like they
all do the same thing.
I also compiled webwork-example.war.  TagTest.action shows the same
behavior.

I get the following html:

<td>
<select name="user">
#bean ("webwork.util.ContainUtil" $contain) <----What's up with this?
    <option value="First1/Last1">First1/Last1</option>
    <option value="First2/Last2">First1/Last1</option>
    <option value="First3/Last3">First3/Last3</option>
</select>
</td>
</tr>

Shouldn't it be?
 <option value="Last1">First1</option>
 <option value="Last2">First1</option>
 <option value="Last3">First3</option>


Here's the other html, proving (to my self at least) I'm not out of line in
my expectations....
<tr>
<td align="right" valign="top">
<span class="label">
  RadioTest:
</span>
</td>

<td>
<label>First1</label>
<input type="radio" name="user_radio" value="Last1"/>
<label>First2</label>
<input type="radio" name="user_radio" value="Last2"/>
<label>First3</label>
<input type="radio" name="user_radio" value="Last3"/>
</td>
</tr>

<tr>
<td align="right" valign="top">
<span class="label">
Checkbox Test:
</span>
</td>

<td>
  <div>
   <input type="checkbox" name="user_checkbox" value="Last1" />
   <label class="label">First1</label>
  </div>
  <div>
   <input type="checkbox" name="user_checkbox" value="Last2" />
   <label class="label">First2</label>
  </div>
  <div>
   <input type="checkbox" name="user_checkbox" value="Last2" />
   <label class="label">First2</label>
  </div>
</td>
</tr>

Thanks,
Alex Radka



-------------------------------------------------------
SF.Net is sponsored by: Speed Start Your Linux Apps Now.
Build and deploy apps & Web services for Linux with
a free DVD software kit from IBM. Click Now!
http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click
_______________________________________________
Opensymphony-webwork mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork

Reply via email to