actually, I did have trouble getting it to work but it doesn't really
matter because that's not really what I am looking for. That tag will
create a whole list of checkboxes, but what I really need is to create a
single checkbox which is part of a list. It's a weird situation so it
wouldn't really surprise me if s2 didn't have support for it, but I
wanted to ask.
in any case, the situation is that i am iterating over a collection and
displaying each entry in a list on the page. in that list i am
providing a couple of checkboxes which affect the status of that entry,
1 which would delete the entry, the other which would set a different
status. so my basic code is ...
<s:iterator list="myCollection">
<tr class="entry">
<td> // delete checkbox </td>
<td> // status checkbox </td>
<td> // print entry details </td>
</tr>
</s:iterator>
so i'm not really trying to print a whole list of checkboxes, i'm trying
to print a single checkbox which is based on a list. it looks like
that's what the old html:multibox tag was for, but i dunno, i didn't
write the original code that i am updating :/
-- Allen
Dave Newton wrote:
--- Allen Gilliland <[EMAIL PROTECTED]> wrote:
Is there a direct equivalent struts2 tag to the
struts1 html:multibox tag? I am looking at some old
code being migrated and i'm not sure how
best to accomplish the same thing in struts2 ...
Does <s:checkboxlist.../> not work for you?
http://struts.apache.org/2.x/docs/checkboxlist.html
d.
__________________________________________________
Do You Yahoo!?
Tired of spam? Yahoo! Mail has the best spam protection around
http://mail.yahoo.com
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]