• 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: Invoking Subcomponent Action
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Invoking Subcomponent Action


  • Subject: Re: Invoking Subcomponent Action
  • From: Chuck Hill <email@hidden>
  • Date: Wed, 18 Feb 2009 14:58:37 -0800

Hi Henrique,


On Feb 18, 2009, at 12:33 PM, Henrique Prange wrote:

Hi all,

Simple question: Is there a simple/correct way to call subcomponent actions? How can I do that?

Here is an example why I need that. I have the following structure in one of my components:

<wo:AjaxModalDialog onClose = "$clearState">
  <wo:WOSwitchComponent WOComponentName = "$componentName">
</wo:AjaxModalDialog>

I need to clear the state of the component instantiated by WOSwitchComponent, but I don't know how to call the action within the 'clearState' method on the current component.

I see it is straightforward to access the component hierarchy in a bottom-up manner (call a parent action, push and pull values from parent), but I haven't found a corresponding way to do that top-down.

Maybe I'm over complicating the problem, but I haven't found an efficient way to do this.


WO is designed for you to NOT do this. :-) I have run into this exact same problem with the AjaxModalDialog and I don't know a good solution to it either. What I have done recently is to set locked to true on the dialog and then use the action on the AjaxSubmitButton to do the cleanup. The locked binding prevents the dialog from being closed by pressing Esc or clicking on any control that is not part of the dialog content. That is not an answer to your question, but might be a solution to your problem.


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: Invoking Subcomponent Action
      • From: Henrique Prange <email@hidden>
References: 
 >Invoking Subcomponent Action (From: Henrique Prange <email@hidden>)

  • Prev by Date: Re: Cannot obtain globalId for an object which is registered in an other than the databaseContext's active editingContext in _globalIDForObject
  • Next by Date: Re: Using MS SQL Server with WO
  • Previous by thread: Re: Invoking Subcomponent Action
  • Next by thread: Re: Invoking Subcomponent Action
  • Index(es):
    • Date
    • Thread