Thanks for the update... Has anyone else had problems having both WW 1.x and WW 2 installed?
> -----Original Message----- > From: Alex Radka [mailto:[EMAIL PROTECTED] > Sent: Tuesday, February 17, 2004 4:57 PM > To: [EMAIL PROTECTED] > Subject: RE: [OS-webwork] bug in select tag (WW2)? > > > duh, I think I've been bitten by the JBoss UCL. > > I've deployed every example/skeletal war file I could find > including a few from Webwork1.4. I went back and looked at > the select.vm from webwork1.4 and, at the least, it had the > odd line #bean ("webwork.util.ContainUtil" $contain), which > isn't in the newest select.vm, but mysteriously showed up in > my html. I believe JBoss was getting confused as to what > libraries to use, even though the correct ones were under by > WEB-INF/lib. > > Anyway, I deleted all the example wars, and redeployed just > my test case, and it is all better now. > > Thanks, > Alex > > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] > Behalf Of Alex Radka > Sent: Tuesday, February 17, 2004 3:46 PM > To: [EMAIL PROTECTED] > Subject: [OS-webwork] bug in select tag (WW2)? > > > 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 > > > > ------------------------------------------------------- > 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 > ------------------------------------------------------- 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_id56&alloc_id438&op=click _______________________________________________ Opensymphony-webwork mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/opensymphony-webwork