Re: Creating a dynamic table on the fly
Re: Creating a dynamic table on the fly
- Subject: Re: Creating a dynamic table on the fly
- From: David LeBer <email@hidden>
- Date: Fri, 25 Jun 2004 12:20:06 -0400
On 25-Jun-04, at 11:07 AM, Jonathan 'Wolf' Rentzsch wrote:
Vincent Coetzee, email@hidden, wrote:
I need to create a table of tables at execution time, in that the
contents of both the outer table and inner tables are completely
dynamic. I am struggling to find an appropriate way of doing this.
Given that WO is supposedly completely OO then surely the easiest way
would be to create an instance of a WOComponent of some sort and then
add the various items to this and then return this from an appropriate
method in an appropriate object. I can find no obvious way to do this.
Does anyone have any ideas ?
Hasn't anyone told you tables-inside-tables are evil? Yeah, I use them
too... (grin)
Y'know I started playing with pure CSS layout last year and It's been a
revelation.
I know longer do nested tables, rather everything is in nested
unordered lists or div's. I also find I am not creating multiple
components to manage the HTML structure all I need is the tagged data.
Makes the resulting html lighter too.
First, build a separate component for your inside table. Use a WOTable
if
you'd like.
Next, build your outside table component, and inside the WOTable put
your
first component.
By the way, it appears you're thinking procedurally in terms of
creating
an instance/populating it/returning it. That's not necessary. Just
declaring your component in your .wo file and hooking up it bindings is
enough. WebObjects will handle the creating/populating/handling for
you.
;david
--
David LeBer
Codebase Software Systems
site: http://www.codebase.ca
blog: http://david.codebase.ca
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.