[Seaside] tables

Avi Bryant avi at beta4.com
Sat Mar 22 11:35:28 CET 2003



On Sat, 22 Mar 2003, Nevin Pratt wrote:

> I'm confused.  If the code like the above is in the #renderContentOn:,
> then the table is recreated with each rendering.  Thus, *every* row is a
> new row, every time.

Sorry, I meant inserting into the code.  Ie, if you have

table insert: 'foo' at: 1 at 1.
table insert: 'bar' at: 2 at 2.
table insert: 'baz' at: 3 at 3.

or some such, what happens when you want to put a row between 'bar' and
'baz'?

Presumably you end up with code instead like

y := 1.
table insert: 'foo' at: y at 1.
y := y + 1.
table insert: 'bar' at: y at 1.

But at that point I'd rather have

table
  add: 'foo';
  add: 'bar';
  add: 'baz'.

Do you see what I'm saying?



More information about the Seaside mailing list