Hi all,

I was using struts 2.0.9, then I resolved to upgrade to 2.1.0.
I was setting a value in a checkbox like this:
<s:checkBox value="${currentRow.id}"/> inside a displayTag iterator.

I read this link https://issues.apache.org/struts/browse/WW-2107 and
understood the situation.
But, is there another way to set a value in my checkBox?

<display:table requestURI="/usuario/pesquisar.action" name="listUsuPesquisa"
list="listUsuPesquisa" export="false" class="list" pagesize="15" uid="item">

<display:column title='<input type="checkbox" name="selectAll"
id="selectAll" value="" onclick="checkAll()"/>'>
<s:checkbox name="checkBox" id="checkBox" value="cdUsuario" fieldValue="${
item.id}" theme="simple" onclick="confirmAllChecked()" />
</display>

*Exception*
According to TLD or attribute directive in tag file, attribute fieldValue
does not accept any expressions

Tanks a lot!
Have a nice week!

Reply via email to