Page creation and usage
Page creation and usage
- Subject: Page creation and usage
- From: Ron Wagner <email@hidden>
- Date: Sun, 28 Mar 2004 15:03:09 -0500
I have a question about page creation and usage. For pages that get
used over and over again I have been creating the page with
pageWithName("pageName"), storing the instance, and re-using the
instance for multiple request-response loops. I started doing this to
save the time of creating the page and to reduce memory footprint for
having multiple instances of the same page.
Is this OK to do, or should I be calling pageWithName for each
request-response loop? I am wondering if I am affecting backtracking in
a bad way or some other negative which I am not considering. If I have
instance variables in the java classes for the WOComponents, will I be
tromping over them each time the page is used, or are they stored
somewhere in a context for each request-response loop?
Any other insights would be appreciated.
Thanks,
Ron Wagner
_______________________________________________
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.