<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>How are you submitting the data?<br><br>Either they need to be in a form, or if you're serializing via ajax, remember to use #serializeWithHidden I think it's called.<br><br>RS<br><br><hr>From&#58; abalonpe@ulb.ac.be<br>Date&#58; Fri, 3 Dec 2010 17&#58;02&#58;02 +0100<br>Subject&#58; Fwd&#58; [Seaside] WATableReport + Checkbox<br>To&#58; seaside@lists.squeakfoundation.org<br><br><div class="ecxgmail_quote">Hi,<div><br></div><div>I have a problem with checkboxes. I'm trying to add a checkbox at each line of a table.</div><div>I have tried several things(the last tries are in comments)&#58;&nbsp;</div><div>

<br></div><div><div>addActionColumn</div>
<div><span style="white-space&#58;pre-wrap">        </span></div><div><span style="white-space&#58;pre-wrap">        </span>columns</div><div><span style="white-space&#58;pre-wrap">                </span>add&#58;</div>
<div><span style="white-space&#58;pre-wrap">                        </span>((WAReportColumn new)</div><div><span style="white-space&#58;pre-wrap">                                </span>title&#58; '';</div><div><span style="white-space&#58;pre-wrap">                                </span>valueBlock&#58; [ &#58;row &#58;html |&nbsp;</div>


<div><span style="white-space&#58;pre-wrap">                                                                </span>html span</div><div><span style="white-space&#58;pre-wrap">                                                                        </span>with&#58;[</div></div><blockquote style="border&#58;none;padding&#58;0px">
<blockquote style="border&#58;none;padding&#58;0px"><blockquote style="border&#58;none;padding&#58;0px"><blockquote style="border&#58;none;padding&#58;0px">
<blockquote style="border&#58;none;padding&#58;0px"><blockquote style="border&#58;none;padding&#58;0px"><blockquote style="border&#58;none;padding&#58;0px">
<div><div>&nbsp;&nbsp;&quot;checked ifTrue&#58;[BibliList bibliCollection add&#58; row].&quot;</div></div></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote><div><div><span style="white-space&#58;pre-wrap">                                                                        </span>html checkbox</div>


<div><span style="white-space&#58;pre-wrap">                                                                                </span>value&#58; checked;</div><div><span style="white-space&#58;pre-wrap">                                                                                </span>onTrue&#58;[BibliList bibliCollection add&#58; row]</div><div>
<span style="white-space&#58;pre-wrap">                                                                                </span>onFalse&#58;[].</div><div><span style="white-space&#58;pre-wrap">                                                                                </span>&quot;onClick&#58; [checked &#58;= true]&quot;</div><div>&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;&quot;callback&#58;[&#58;value | value ifTrue&#58; [BibliList bibliCollection add&#58; row]]&quot;</div>


<div>&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;]]).</div></div><div><br></div><div>Unfortunately, nothing seems to work...when I click on the checkbox, nothing happen and my list bibliCollection (which is an OrderedCollection) is still empty.</div>


<div>Thx for your help</div><div>alex</div>
</div><br>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http&#58;//lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside                                               </body>
</html>