Re: Constructors
Re: Constructors
- Subject: Re: Constructors
- From: Michael Kondratov <email@hidden>
- Date: Wed, 5 Nov 2003 18:34:40 -0500
Have you tried to embed the WOComponents with in each other instead?
Michael
www.aspireauctions.com
On Nov 5, 2003, at 5:46 PM, David Griffith wrote:
Ok, now that I have a slightly better idea of how components work,
here is a
scenario:
Page 1 Header Footer Page
Page 2 Menu Page, wrapper with Header Footer
Page 3 Content Page , wrapper with Menu Page
Page 2 extends Page 1
Page 3 extends Page 2
Therefore Page 3 can see and use Page 1 and Page 29s methods and
variables.
However, when I instantiate Page 3, I get the following constructor
calls:
Page 1 constructor
Page 2 constructor
Page 3 constructor (this is much as I expected)
Page 1 constructor (again)
Page 2 constructor (again)
Page 1 constructor (AGAIN).
Does this make sense and if so, can someone please tell me why?
Also, setting variable values that belong to Page 1 from Page 3
results in
them being set whilst in the constructor of Page 3 but in all other
locations above they are null.
Once control returns to Page 3, the values exist. But they are values
that
the construction process depends on.
Regards,
Dave.
_______________________________________________
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.
_______________________________________________
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.
References: | |
| >Constructors (From: David Griffith <email@hidden>) |