Re: Binding an Action across components?
Re: Binding an Action across components?
- Subject: Re: Binding an Action across components?
- From: Chuck Hill <email@hidden>
- Date: Fri, 16 Jun 2006 13:18:17 -0700
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:
This email sent to email@hidden