<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Tahoma
}
--></style>
</head>
<body class='hmmessage'>Check out what row is in the callback by exploring or using the Transcript.<br><br>You might be losing pointers to the objects somewhere in there.<br><br>RS<br><br><hr>From: abalonpe@ulb.ac.be<br>Date: Fri, 3 Dec 2010 18:30:27 +0100<br>Subject: Re: [Seaside] WATableReport Checkbox<br>To: seaside@lists.squeakfoundation.org<br><br>I have a submitButton also in the form with an empty callback.<div>I just want the button to trigger all the callbacks of the checkboxes.</div><div>However it doesn't seem to work at all.</div><div><br></div><div>Alex<br>
<br><div class="ecxgmail_quote">2010/12/3 Robert Sirois <span dir=ltr><<a href="mailto:watchlala@hotmail.com">watchlala@hotmail.com</a>></span><br><blockquote class="ecxgmail_quote" style="border-left:1px #ccc solid;padding-left:1ex">
<div>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: <a href="mailto:abalonpe@ulb.ac.be">abalonpe@ulb.ac.be</a><br>
Date: Fri, 3 Dec 2010 17:02:02 +0100<br>Subject: Fwd: [Seaside] WATableReport + Checkbox<br>To: <a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br><br><div>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): </div><div>
<br></div><div><div>addActionColumn</div>
<div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>columns</div><div><span style="white-space:pre-wrap">                </span>add:</div>
<div><span style="white-space:pre-wrap">                        </span>((WAReportColumn new)</div><div><span style="white-space:pre-wrap">                                </span>title: '';</div><div><span style="white-space:pre-wrap">                                </span>valueBlock: [ :row :html | </div>
<div><span style="white-space:pre-wrap">                                                                </span>html span</div><div><span style="white-space:pre-wrap">                                                                        </span>with:[</div></div><blockquote style="border:none;padding:0px">
<blockquote style="border:none;padding:0px"><blockquote style="border:none;padding:0px"><blockquote style="border:none;padding:0px">
<blockquote style="border:none;padding:0px"><blockquote style="border:none;padding:0px"><blockquote style="border:none;padding:0px">
<div><div> "checked ifTrue:[BibliList bibliCollection add: row]."</div></div></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote></blockquote><div><div><span style="white-space:pre-wrap">                                                                        </span>html checkbox</div>
<div><span style="white-space:pre-wrap">                                                                                </span>value: checked;</div><div><span style="white-space:pre-wrap">                                                                                </span>onTrue:[BibliList bibliCollection add: row]</div><div>
<span style="white-space:pre-wrap">                                                                                </span>onFalse:[].</div><div><span style="white-space:pre-wrap">                                                                                </span>"onClick: [checked := true]"</div><div> "callback:[:value | value ifTrue: [BibliList bibliCollection add: row]]"</div>
<div> ]]).</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
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a>                                            </div>
<br>_______________________________________________<br>
seaside mailing list<br>
<a href="mailto:seaside@lists.squeakfoundation.org">seaside@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside" target="_blank">http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside</a><br>
<br></blockquote></div><br></div>
<br>_______________________________________________
seaside mailing list
seaside@lists.squeakfoundation.org
http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside                                            </body>
</html>