• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag
 

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Rendering a tree view in WO
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendering a tree view in WO


  • Subject: Re: Rendering a tree view in WO
  • From: Mark Wardle <email@hidden>
  • Date: Fri, 6 May 2005 20:03:30 +0100


On 6 May 2005, at 17:52, Bruce Kerns wrote:

Does anyone have any pointers to information on how to go about rendering a HTML dynamic tree view in WO?


I just use a custom component which uses recursion. Add a hasChildren () method to your EO and use that in a WOConditional and then recursively place your custom component. Bind your list of subobjects to a WORepetition and away you go. I also use some fixed size images, and the obligatory + and - images to draw the tree.


Don't know whether this is the "right way", but it works.

Mark


_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (email@hidden) Help/Unsubscribe/Update your Subscription: This email sent to email@hidden
References: 
 >Rendering a tree view in WO (From: Bruce Kerns <email@hidden>)

  • Prev by Date: Re: SELECT objects with condition on all their relationships
  • Next by Date: Article: Managing Database Changes
  • Previous by thread: Rendering a tree view in WO
  • Next by thread: Re: Rendering a tree view in WO
  • Index(es):
    • Date
    • Thread