[Seaside] How to alternate table row colors without WATableReport

Lukas Renggli renggli at gmail.com
Sat Mar 14 18:37:21 UTC 2009

> html table: [
>     collection withIndexDo: [:each :index |
>          html tableRow: [
>              html div class: ('row' , (index \\ 2) printString); with: [
>                   html
>                        tableData: each stuff1;
>                        tableData: each stuff2]]]]

That's not valid HTML. Assign the class to the #tableRow and avoid
putting a #div around the #tableData. See the senders of #table and
#table: for various examples.


Lukas Renggli

More information about the seaside mailing list