• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Overriding action methods in PageWrapper
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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


  • Follow-Ups:
    • Re: Overriding action methods in PageWrapper
      • From: David Holt <email@hidden>
References: 
 >Overriding action methods in PageWrapper (From: David Holt <email@hidden>)

  • Prev by Date: Overriding action methods in PageWrapper
  • Next by Date: Re: Overriding action methods in PageWrapper
  • Previous by thread: Overriding action methods in PageWrapper
  • Next by thread: Re: Overriding action methods in PageWrapper
  • Index(es):
    • Date
    • Thread