Re: Rendering Child Components
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