<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>
If your x and y objects don't have unique IDs themselves, try something along these lines (just keep in mind, nothing will "remember" (keep state for the IDs) which one is which, but they will be in a logical order at least).<br><br><div>| xID yID | xID := 0. yID := 0.</div><div><br><div><meta charset="utf-8">html table: [</div><div><br style="text-indent: 0px !important; ">&nbsp;&nbsp; &nbsp;collection1 do: [ :x | xID := xID + 1.</div><div><br style="text-indent: 0px !important; ">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;html tableRow: [</div><div><br></div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;collection2 do: [:y | yID := yID + 1.</div><div><br></div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;html tableData: [</div><div><br></div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;html checkBox<br style="text-indent: 0px !important; "><meta charset="utf-8">&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;&nbsp;&nbsp; &nbsp;id: xID asString, 'x', yID asString;</div><meta charset="utf-8"><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;" ... "</div><div><br></div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]</div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp;]</div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp; &nbsp; &nbsp;]</div><meta charset="utf-8"><div>&nbsp;&nbsp; &nbsp;]</div><div>].</div><div><br></div><div><br></div><div>(Subject to errors as I don't have Smalltalk up)</div><div>RS</div><div><br><hr id="stopSpelling">Date: Sat, 20 Nov 2010 13:15:06 +0100<br>From: gschtick@gmail.com<br>To: seaside@lists.squeakfoundation.org<br>Subject: [Seaside] generating dynamic id:#name for component inside a table<br><br>Hello,<br><br>I have a table built like this<br><br>html table: [<br>&nbsp;&nbsp; collection1 do: [ :x | <br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html tableRow: [ collection2 do: [:y |<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; html tableData: [ html checkBox<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; id: #checkBoxName<br>
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; .....] ] ] ] ]<br><br>What I'd like is to have a different #checkBoxName for each so I can set one depending of the function of the other with a ((html jQuery: #checkBoxNameXY) attributeAt: 'checked' put: (html jQuery this attributeAt: 'disabled')) or something like it.<br>
<br>How should I proceed to achieve this?<br><br>Thanks<br>Gilles<br>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</div></div>                                               </body>
</html>