Re: Programmatically rendering a WOComponent
Re: Programmatically rendering a WOComponent
- Subject: Re: Programmatically rendering a WOComponent
- From: Arturo Pérez <email@hidden>
- Date: Mon, 15 Mar 2004 20:33:41 -0500
On Mar 15, 2004, at 6:58 PM, Chuck Hill wrote:
Hi Arturo!
Seems like a reasonable thing to me. You have to be careful doing
this with request.context. The best is to create a new context and
w.awakeInContext();
WOResponse r = w.generateResponse();
Then get the HTML (or whatever) from r.content().
There is not too much of a reason to create a WODynamicElement unless
you are optimizing or need special binding access. There is some stuff
on WODev about this and, of course, in "the book".
Chuck
Great! Thanks. In the above you mean ensureAwakeInContext(), right?
----
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.