Re: How to create an action binding?
Re: How to create an action binding?
- Subject: Re: How to create an action binding?
- From: "Pierce T. Wetter III" <email@hidden>
- Date: Fri, 14 Jul 2006 18:24:03 -0700
On Jul 14, 2006, at 2:19 PM, Miguel Arroz wrote:
Hi!
I'm creating a component that contains a form and a submit
button. I want to be able to include that component inside another
one, and that the submit button binds to an action on the
"external" component. What I need is a "action" binding like those
ones found in WOHyperlink and such. How do I do this?
Try using a "pass-through" binding:
action: ^action
in the .wod file for your submit button. That tells WebObjects to
pull the value of "action" not from the enclosing component, but from
where that component is bound. In fact, you can pass through all the
WOSubmitButton options if you like the same way.
But as others have said, you'll want to be manually pulling
bindings in that case. Otherwise WO will happily try to shove the
value of "action" into your component where its referenced, and you
don't want that.
Pierce
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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