Re: Components on a page question...
Re: Components on a page question...
- Subject: Re: Components on a page question...
- From: Chuck Hill <email@hidden>
- Date: Sat, 27 Mar 2004 14:05:44 -0800
I don't know what your code looks like but I suspect you've just
confused yourself. Perhaps if you take a step back and look at it
again...
While I think that binding synchronization is the way to go, I doubt
that your inheritance is helping you. Perhaps get rid of that as a
first step.
As an alternative, and one ties the components a bit too closely to the
page, you could do
EOEnterpriseObject eo = ((Page)context().page()).getEO();
In the sub components.
Chuck
On Mar 27, 2004, at 11:33 AM, James Cicenia wrote:
All I wanted to do was make my life simple with WOBuilder.. I thought.
Since my page is visually complicated with nested tables.. I made each
table a component. however
they are all accessing the same EOObject. So, is this even possible in
an editing mode? It all worked
great for displaying data, but now that I have the editable form
version, it won't save anything entered
via the form.
-James
On Mar 27, 2004, at 1:20 PM, King Chung Huang wrote:
Even though Page1, 2, and 3 may be sub-classed from Page, they are
still separate object instances. Your Page1, 2, and 3 classes cannot
access a variable set in Page; they are in a different scope.
What are you trying to do with the Page subclasses?
King Chung Huang
Learning Commons
University of Calgary
On Mar 27, 2004, at 9:05 AM, James Cicenia wrote:
Hello -
I have a WebObjects page that I built with multiple components
so that WOBuilder would have an easier time.
Say I have a Page with 3 components nested in it..
Page
Page1
Page2
Page3
I subclassed Page1, Page2, Page3 from Page. All my objects,
initializations
are in Page. When it builds the page will Page1,2&3 void out my
objects?
It seems they are. Originally I had passed the item into Page from a
previous
page and everything displays properly... but when I try to save any
changes
nothing is changed.
How do the pros handle this pattern?
-James Cicenia
_______________________________________________
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.