Dear Julian,<div><br></div><div>Thanks for the excellent feedback!  It will come in handy if I want to contribute something else in the future.  </div><div><br></div><div>No, I wasn&#39;t aware that valueBlock could take two arguments and you&#39;re right that doing it that way does give more flexibility than what I implemented.  So I&#39;d like to withdraw my proposed changes.</div>

<div><br></div><div>Thank you,</div><div><br></div><div>-- Dan<br><br><div class="gmail_quote">On Wed, Oct 6, 2010 at 6:26 PM, Julian Fitzell <span dir="ltr">&lt;<a href="mailto:jfitzell@gmail.com">jfitzell@gmail.com</a>&gt;</span> wrote:<br>

<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">Hi Dan,<br>
<br>
Thanks. I took a quick look at this. Are you aware that you can<br>
currently do the following?<br>
<br>
WAReportColumn new<br>
    valueBlock: [ :pet :html | html anchor url: pet url; with: pet petName ];<br>
    title: &#39;Name&#39;<br>
<br>
At first glance, this seems to give more flexibility, but if you feel<br>
it doesn&#39;t meet your needs, I&#39;m happy to look at it again.<br>
<br>
Since I did review the .mcz before I found that method, though, I&#39;ll<br>
pass on the feedback I had noted:<br>
<br>
 * We don&#39;t use #ifNil:ifNotNil: for portability reasons. use &quot;isNil<br>
ifTrue: [] ifFalse: []&quot;<br>
 * There are a couple of methods in your version that have been<br>
changed but have no actual changes in them. Please make sure to check<br>
the changes before committing your version and revert any methods<br>
needed to remove these cases (they lead to conflicts down the road and<br>
confusion about who wrote the method)<br>
 * Our coding conventions put spaces around the contents of blocks and<br>
cascaded method sends each on their own lines.<br>
<br>
So this:<br>
<br>
(aColumn anchorBlock) ifNil: [html text: text]<br>
        ifNotNil: [html anchor url: (aColumn anchorForRow: aRow); with: text]<br>
<br>
Should really be more like:<br>
<br>
aColumn anchorBlock isNil<br>
        ifTrue: [ html text: text ]<br>
        ifFalse: [ html anchor<br>
                url: (aColumn anchorForRow: aRow);<br>
                with: text ]<br>
<br>
None of these are the end of the world (i.e. we can fix them as we<br>
merge) but the easier you can make it for us, the more we&#39;ll love you.<br>
:)<br>
<br>
Julian<br>
<div><div></div><div class="h5"><br>
On Tue, Oct 5, 2010 at 2:28 PM, Dan Winkler &lt;<a href="mailto:dan.winkler@gmail.com">dan.winkler@gmail.com</a>&gt; wrote:<br>
&gt; Attached is my enhancement to WATableReport which allows items in the table<br>
&gt; to link to other web pages.  Previously it was only possible to attach a<br>
&gt; Smalltalk callback to an item, not a regular HTML anchor to another web<br>
&gt; page.<br>
&gt; Example usage:<br>
&gt;<br>
&gt; petsTable := WATableReport new.<br>
&gt; petsTable<br>
&gt; columns:<br>
&gt; ((OrderedCollection new)<br>
&gt; add:<br>
&gt; ((WAReportColumn new)<br>
&gt; valueBlock: [ :pet | pet petName ];<br>
&gt; anchorBlock: [ :pet | pet url ];<br>
&gt; title: &#39;Name&#39;);<br>
&gt; add: (WAReportColumn selector: #age title: &#39;Age&#39;);<br>
&gt; add: (WAReportColumn selector: #birthDate title: &#39;Birth Date&#39;);<br>
&gt; add: (WAReportColumn selector: #gender title: &#39;Gender&#39;);<br>
&gt; add: (WAReportColumn selector: #breed title: &#39;Breed&#39;);<br>
&gt; add: (WAReportColumn selector: #petNumber title: &#39;Number&#39;);<br>
&gt; yourself)<br>
</div></div>&gt; _______________________________________________<br>
&gt; seaside-dev mailing list<br>
&gt; <a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
&gt; <a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
&gt;<br>
&gt;<br>
_______________________________________________<br>
seaside-dev mailing list<br>
<a href="mailto:seaside-dev@lists.squeakfoundation.org">seaside-dev@lists.squeakfoundation.org</a><br>
<a href="http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev" target="_blank">http://lists.squeakfoundation.org/mailman/listinfo/seaside-dev</a><br>
</blockquote></div><br></div>