Struts2标签使用之s:checkboxlist和s:optiontransferselect
<s:optiontransferselect
label="角色用户设置"
name="left"
leftTitle="<font color=#0033CC size=2>不属于该角色的用户列表</font>"
rightTitle="<font color=#0033CC size=2>属于该角色的用户列表</font>"
list="unDefineRoleUsers"
listKey="id"
listValue="name"
multiple="true"
headerKey="headerKey"
emptyOption="false"
doubleList="defineRoleUsers"
doubleName="right"
doubleHeaderKey="doubleHeaderKey"
doubleEmptyOption="false"
doubleMultiple="true"
addToLeftLabel="左移"
addToRightLabel="右移"
addAllToLeftLabel="全部左移"
addAllToRightLabel="全部右移"
selectAllLabel="全选"
rightDownLabel="下移"
rightUpLabel="上移"
leftDownLabel="下移"
leftUpLabel="上移"
cssStyle="width:220px;FONT-SIZE: 12px;"
doubleCssStyle="width:220px;FONT-SIZE: 12px;"
csstheme="simple" list="#request.perList" value="perList" listKey="perid" listValue="pername"></s:checkboxlist>