You need to supply a block [ :aRow :aDate | &quot;some code using aDate and aRow&quot; ] that returns the text to be rendered for the date/row. You supply it as the argument to rowsAndDatesDisplay: aBlock  which will store the block in the cellBlock instance variable.<br>
<br><div class="gmail_quote">On Tue, Jan 11, 2011 at 3:51 PM,  <span dir="ltr">&lt;<a href="mailto:recursive68@gmail.com">recursive68@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,<div><br></div><div>Has anyone got an example of how to use WASelectionDateTable. I&#39;m stuck receiving the following error:</div><div><br></div><div>MessageNotUnderstood: receiver of &quot;value:value:&quot; is nil</div>

<div>UndefinedObject(Object)&gt;&gt;doesNotUnderstand: #value:value </div><div>[] WASelectionDateTable&gt;&gt;renderCellForDate:row:index:on: </div><div><br></div><div>Code is:</div><div><br></div><div><div>initialize <span style="white-space:pre-wrap">        </span></div>

<div><span style="white-space:pre-wrap">        </span>|start plus1 plus2 plus3|</div><div><span style="white-space:pre-wrap">        </span>super initialize.</div><div><span style="white-space:pre-wrap">        </span>plantable := WASelectionDateTable new. </div>

<div><span style="white-space:pre-wrap">        </span>start := Date today.</div><div><span style="white-space:pre-wrap">        </span>plus1 := start addDays: 1.</div><div><span style="white-space:pre-wrap">        </span>plus2 := start addDays: 2.</div>

<div><span style="white-space:pre-wrap">        </span>plus3 := start addDays: 3.</div><div><span style="white-space:pre-wrap">        </span>plantable startDate: start.</div><div><span style="white-space:pre-wrap">        </span>plantable endDate: (start addDays: 3).</div>

<div><span style="white-space:pre-wrap">        </span>aCollection := Dictionary new.</div><div><span style="white-space:pre-wrap">        </span>aCollection add: start -&gt; &#39;One&#39;;add:  plus1 -&gt; &#39;Two&#39;; add: plus2 -&gt; &#39;Three&#39;; add: plus3 -&gt; &#39;Four&#39;;yourself. </div>

<div><span style="white-space:pre-wrap">        </span>plantable rows: aCollection.</div></div><div><br></div><div><br></div><div><div>renderContentOn: html</div><div><span style="white-space:pre-wrap">        </span>html render: plantable</div>

</div><div><br></div><div>Thanks</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><br clear="all"><br>-- <br><a href="http://john-mckeon.us" target="_blank">http://john-mckeon.us</a><br>