Updating a component inside another component
Updating a component inside another component
- Subject: Updating a component inside another component
- From: Reid Bundonis <email@hidden>
- Date: Wed, 30 Jul 2003 11:34:36 -0400
Hello list. I need a little help. I have a main section (MainUser)
component that contains four other components. One is a header
(Header), another is an add form (UserAdd), another is a list of
existing records (UserTools) and the last is a footer (Footer). The
MainUser page simply holds all of the sub components. I want to reuse
the add form as the edit form but I can not seem to figure out how to
update the component that is nested inside another. This is the first
time I've run into something like this. In the past, I simply send
values to a new page such as:
public UserAdd editUser() {
UserAdd editUser = (UserAdd)pageWithName("UserAdd");
editUser.setMember(memberItem);
return editUser;
}
The problem is that this returns only the component, not the entire
page structure. I am guessing that I can do a
public MainUser editUser() {
MainUser nextPage = (MainUser)pageWithName("MainUser");
nextPage.setMember(memberItem);
return nextPage;
}
But the problem is that the page MainUser does not have these values,
the sub-component UserAdd does. How do I address that component
(UserAdd) to update and get the page to display as a whole? Is this
possible, or can I only address one page?
_______________________________________________
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.