Re: web board recursive component
Re: web board recursive component
- Subject: Re: web board recursive component
- From: Tom Pelaia <email@hidden>
- Date: Mon, 08 Dec 2003 08:35:51 -0500
- Organization: ORNL/SNS
I've done this in a logbook that I created. I made a component that
displays it's message and a triangle twist control for each child
message indented one level to the right. Each child then displays its
children and so on as deep as needed. The solution is just to nest
components. Each message component simply nests its children's message
component and that takes care of unlimited recursion. In the database a
message is allowed to have a single parent message. The logbook allows
users to display messages flat on a per day basis and to select the
thread (if any) that the message belongs to and display the message in a
thread hierarchy. I locate the root message in the thread and then
display the message in thread view. It's actually very simple and
allows flexibility to display messages in different ways.
-tom
>
> Subject:
> web board recursive component
> From:
> Marc Desjardins <email@hidden>
> Date:
> Sat, 06 Dec 2003 19:36:19 -0500
> To:
> email@hidden
>
>
>Hi,
>
> I'm new to this list and to webobject in general. I'm trying to build a
>small web board (forum) component and I'm wondering and there is any way to
>make a WORepetition recursive. Basically, a message can have any number of
>answers and each answers, in turn, can have any number of answers. So far I
>have my component reading all the first level message from the DB and then
>for each message I have a repetition that gets all the childs messages. But
>I don't want to keep adding repetition and eventually limit the number of
>levels. So if you have any tips on how to create some recursivity in the
>WebObject builder, I'd appreciate any help you can give me.
>
>Thanks in advance!
>
>Marc (email@hidden)
>
>
--
Tom Pelaia
SNS Project, 701 Scarboro Road, MS-6473, Oak Ridge, TN 37830
phone: (865)574-6421, fax: (865)574-6617
_______________________________________________
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.