Re: What is the best way and where to create my array...
Re: What is the best way and where to create my array...
- Subject: Re: What is the best way and where to create my array...
- From: James Cicenia <email@hidden>
- Date: Wed, 3 May 2006 10:12:44 -0500
Ok --
I have tried Awake, however, since I am using a display group, it
seems that is to late to set the displayGroups objects, same with
append to response. Is this a DisplayGroup issue? I am using this
project to finally learn and use DisplayGroups.
thanks
James
On May 3, 2006, at 9:00 AM, Paul Lynch wrote:
On 3 May 2006, at 14:45, James Cicenia wrote:
I have multiple lists on a page. However, in the wrapper there is
a pull
down that can will act as a filter.
I had originally put my array creation in the constructor.
However, when I
click on my wrapper pull down, the page refreshes, but the
constructor of the
components is not called.
So, how do you guys solve this? Do I need to create a notification
system or such?
The constructors are only called with pageWithName() is used to
retrieve a component. This is a good thing. When redisplaying a
page, you should be using bindings to pass values back and forth
between components on a page. There are various points which you
can use in the request-response cycle to prepare data; awake()
isn't too bad a place to do this, the same goes for appendToResponse
(), depending on what exactly you are doing.
Someone will probably point out that standard binding processing
will cause each binding to be refreshed up to six times per r-r
cycle; this may or may not be a big deal, but it does mean that you
should keep processing out of your accessor methods. You can look
into synchronizesVariablesWithBindings() and stateless components
if this is going to matter to you.
Paul
_______________________________________________
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