Re: Binding an Action across components?
Re: Binding an Action across components?
- Subject: Re: Binding an Action across components?
- From: Mike Schrag <email@hidden>
- Date: Fri, 16 Jun 2006 16:28:36 -0400
I think, if I understand correctly, he's saying he has a parent
component with a save action, and a sub-component the he wants to
call the parent's save action.
You have two options: 1) pass in parentActionName as a String, and
call performParentAction(thatName) in your subcomponent action
method, 2) turn off automatic binding synchronization, pass in the
actual action itself to the subcomponent, and when you
valueInComponent() the WOAssocation of that binding, it will execute
the action, returning a WOActionResults to you.
ms
On Jun 16, 2006, at 4:18 PM, Chuck Hill wrote:
Nested component take what they need from the parent, the parent
does not pass it down of its own accord. That said, I doubt that I
understand the scenario you have. Can you provide more detail?
Chuck
On Jun 16, 2006, at 1:13 PM, James Cicenia wrote:
Well that is a nice trick.. however,,, my button is in a component...
so how do I get an action method to pass this to the nested button?
- james
On Jun 16, 2006, at 2:34 PM, Chuck Hill wrote:
On Jun 16, 2006, at 12:15 PM, James Cicenia wrote:
Hello -
I have created a common navigational element to peruse a
DisplayGroup.
When one in a detail record the navigational component will show
cancel save next prev.
I have bound the dg to this component and so next and prev work
fine.
However for save, I don't want the save method to be used here,
I would
like it to notify the nesting page component's save method.
WOBuilder can't show it to you, but you can do this:
action = context.page.saveMethod;
You could also make a method like
public TopLevelPage page()
{
return (TopLevelPage) context().page();
}
and then WOBuilder will help you bind
action = page.saveMethod;
Chuck
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
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
--
Coming sometime... - an introduction to web applications using
WebObjects and Xcode http://www.global-village.net/wointro
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:
40mdimension.com
This email sent to email@hidden
_______________________________________________
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