Petri Wessman wrote:
As a simplified concrete example, I'd have something like this on the page:
<table>
<div jwcid="@For" source="ognl:itemList" value="ognl:currentListItem">
<tr>
<td><span jwcid="@Insert" value="ognl:currentListItem.name"/></td>
<td><input type="checkbox" jwcid="@Checkbox" value="???"/></td>
</tr>
</div>
</table>
What goes in "???" ?
Replying to myself here :).
I just occurred to me that I could (naturally) store the "checked" value
into the current line item itself, with something like
"ognl:currentListItem.checked". Doh! I was using read-only values when
playing around with this, but there's nothing stopping me making a temp
read/write version of the item list here.
For the sake of academic interest: if for some weird reason I could not
store the value into the current For-loop item itself, how would I do
this? In other words, if I wanted to use a decoupled array of booleans
(or some such), is there an OGNL notation or some other trick with which
I could bind the checkbox value to an array element?
//Petri
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]