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: ^actionin 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
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to [email protected]
