• 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 Child Components
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Rendering Child Components


  • Subject: Re: Rendering Child Components
  • From: Andrew Lindesay <email@hidden>
  • Date: Sat, 10 Feb 2007 11:46:07 +1300

Hello Chuck;

Can you explain that a bit more? If there is no template, how are there child components? Are you creating them yourself? Things like WOConditional maintain an array of their children and iterate over it calling appendToResponse...

I'll see if I can make myself more clear; it is a re-usable component that wraps content. Here is a fictitious page illustrating this;


<HTML><BODY>
<WEBOBJECT name="WrapperComponent">
<P>Hello there <WEBOBJECT NAME="YourName"></WEBOBJECT>.</P>
</WEBOBJECT>
</BODY>
</HTML>

To achieve an implementation of such a wrapper component I would usually stick a "WOComponentContent" into the template for the wrapper, but in this case (since I am generating almost all of the content in java-code) I was thinking that if I could do this programatically it might be better. I suppose what the "WOComponentContent" does is renders everything between ...pperComponent"> and </WEBO... but I am unsure of the mechanics around which "WOComponentContent" is able to get this material from the parent.

cheers.

___
Andrew Lindesay
www.lindesay.co.nz



_______________________________________________
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 Child Components (From: Andrew Lindesay <email@hidden>)
 >Re: Rendering Child Components (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Rendering Child Components
  • Next by Date: WOForm and "multipleSubmit"
  • Previous by thread: Re: Rendering Child Components
  • Next by thread: WOForm and "multipleSubmit"
  • Index(es):
    • Date
    • Thread