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: "Jonathan 'Wolf' Rentzsch" <email@hidden>
- Date: Fri, 25 Jun 2004 10:07:43 -0500
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)
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.
| Jonathan 'Wolf' Rentzsch http://rentzsch.com
| Red Shed Software http://redshed.net
| "better" necessarily means "different"
_______________________________________________
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.