[Seaside] tables
Nevin Pratt
nevin at smalltalkpro.com
Fri Mar 21 21:15:12 CET 2003
Does anybody else find tables rather clutsy to deal with? For example...
html table: [html
tableRow: [html
tableData: [html
bold: [html
text: 'this is a test'
]
]
]
].
Now when you combine the above code with multiple #tableRows: and
#tableData: methods for a more sophisticated table, you get quite a
clump of unintelligable "mashed potato code". Or should I say
"toothpaste code"? You know, the type of code where it looks like you
reached into the monitor to squeeze it on the left side, and the code
all came squirting out to the right side as a result :-)
Anyway, I wish I had something more constructive to offer here, like an
elegant solution or something, instead of just complaining.
But at any rate, dealing with tables sure is a pain in the arse.
I noticed these #labelledRowFor... methods in WAHtmlRenderer, but I'm
not sure how I would use them, if *if* I could use them, to simplify
table coding.
I also noticed the HtmlTable class, and thought to myself that it just
might help tame the tables. But alas, it really doesn't seem to help
any, as it seems to use companion classes like HtmlTableRow and
HtmlTableDataItem to recreate the exact same table mess, rather than
hiding the mess from you.
Anybody got any suggestions? (like, maybe swear off tables completely,
and use something else entirely? like what?)
Nevin
More information about the Seaside
mailing list