Programmatically rendering a WOComponent
Programmatically rendering a WOComponent
- Subject: Programmatically rendering a WOComponent
- From: Arturo PĂ©rez <email@hidden>
- Date: Mon, 15 Mar 2004 18:44:59 -0500
I have a desire, perhaps misplaced, to want to create a WOComponent,
save it in an instance variable, and then later get it to generate its
HTML. I don't want to use WOBuilder to place this component on a page,
but I do want it to get rendered "programmatically" at some point.
What's my best strategy to achieve this?
Essentially, I want to
WOComponent w = pageWithName("AComponent");
save(w);
<some time later>
w.appendToResponse()
In the above, component w does not appear on any page and is a partial
component. Is there any way to do this or shall I pursue a different
(perhaps more enlightened) strategy?
I have the vague feeling that WODynamicElement might be a good thing to
know about for this problem but I haven't seen anything to cement that
feeling.
Thanks in advance.
----
WO in philadelphia - wanna cheesesteak with that?
Please visit webobjects.meetup.com.
_______________________________________________
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.