Re: Overriding action methods in PageWrapper
Re: Overriding action methods in PageWrapper
- Subject: Re: Overriding action methods in PageWrapper
- From: Chuck Hill <email@hidden>
- Date: Thu, 27 May 2010 15:54:46 -0700
On May 27, 2010, at 3:39 PM, David Holt wrote:
Hi all,
I have a number of components wrapped in a form with WOSubmitButtons
that save and revert and return context().page(). In most cases the
method for the submit buttons should come from the wrapper, but in
some cases I would like the *wrapped* component to provide the
saveChanges() method to the wrapper buttons so I can do some
pageflow logic. Is this possible?
You want buttons on the wrapper (parent) to call actions on the
wrapped components (children)? It might be possible, but it is
probably wrong (as in immoral and improper). In WO, parents know that
they have children, but not who they are. Children know who their
parents are.
Tell us what you want to achieve and we can see how that might be done.
Chuck
--
Chuck Hill Senior Consultant / VP Development
Practical WebObjects - for developers who want to increase their
overall knowledge of WebObjects or who are trying to solve specific
problems.
http://www.global-village.net/products/practical_webobjects
_______________________________________________
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