RE: Buggy WO Doc with performParentAction
RE: Buggy WO Doc with performParentAction
- Subject: RE: Buggy WO Doc with performParentAction
- From: <email@hidden>
- Date: Wed, 8 Sep 2004 17:33:29 +0200
- Thread-topic: Buggy WO Doc with performParentAction
Did you averride synchronizesVariablesWithBindings() to return false?
Pierre
-----Original Message-----
From: email@hidden
[mailto:email@hidden]On Behalf Of Wolfram Stebel
Sent: Wednesday, September 08, 2004 8:33 AM
To: Apple WebObjects-List
Subject: Buggy WO Doc with performParentAction
Hello all,
the following block is the doc for performParentAction:
---
An example best illustrates this mechanism. Let's say there is a
Palette subcomponent, and this WOComponent is nested in a parent
component with a displaySelection action method. When the user selects
an item in the palette (perhaps a color), you want to invoke
displaySelection to show the result of the new selection (perhaps a
car in the new color). The declaration in the parent's .wod file would
look like this:
PALETTE: Palette {
selection = number;
callBack = "displaySelection";
};
The "callBack" item is an arbitrary attribute of the child component
bound in this declaration to the parent component's displaySelection
method. The performParentAction method is used to activate this
binding. Assuming the child component has an action method called
click, the implementation would look like this:
public WOActionResults click() { // this is the child's action
selection = "xxxx"; // some value
// now invoke the parent's action
return performParentAction(callBack);
}
---
This does not work as expected. Instead i have to get the binding
myself.
callBack = ( String ) valueForBinding ( "callBack" );
WOActionResults war = performParentAction ( callBack );
Is that true, or am i missing some essential information?
Thanks
Wolfram Stebel
Mailto: email@hidden
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.
**********************************************************************
This email and any files transmitted with it are intended solely for
the use of the individual or entity to whom they are addressed.
If you have received this email in error please notify the sender
of this message. (email@hidden)
This email message has been checked for the presence of computer
viruses; however this protection does not ensure this message is
virus free.
Banque centrale du Luxembourg; Tel ++352-4774-1; http://www.bcl.lu
**********************************************************************
_______________________________________________
webobjects-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/webobjects-dev
Do not post admin requests to the list. They will be ignored.