[Seaside] WABatchedList\WATableReport example code-snap for Set

Cong Tan congcongtan at gmail.com
Thu Aug 4 05:20:53 UTC 2011


I just got it working.  You are right, my code was buggy.  Once I clear up
everything, I will put my code here for future reference.

On Thu, Aug 4, 2011 at 12:18 AM, Lukas Renggli <renggli at gmail.com> wrote:

> > Yes. I have several other components composed in renderContentOn:  I
> > actually followed the example and have my result displayed,
>
> The code you posted looked very buggy:
>
> 1. you cannot instantiate components while rendering (otherwise they
> get recreated each time)
>
> 2. you cannot send #renderContentOn: on other components (this messes
> with the rendering)
>
> Both bugs can be detected using Slime.
>
> > but i am
> > interesting to know WABatchedList and WATableReport works together.
> >  TableReport shows a table, but BatchedList controls what to show?  I am
> > confused about this part.
>
> You renderContentOn: method should look as simple as that:
>
> renderContentOn: html
>    tableReport rows: batchedList batch.
>    html render: tableReport.
>    html render: batchedList
>
> Lukas
>
> --
> Lukas Renggli
> www.lukas-renggli.ch
> _______________________________________________
> seaside mailing list
> seaside at lists.squeakfoundation.org
> http://lists.squeakfoundation.org/cgi-bin/mailman/listinfo/seaside
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.squeakfoundation.org/pipermail/seaside/attachments/20110804/80837945/attachment.htm


More information about the seaside mailing list