• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: Buggy WO Doc with performParentAction
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Buggy WO Doc with performParentAction


  • Subject: Re: Buggy WO Doc with performParentAction
  • From: Wolfram Stebel <email@hidden>
  • Date: Wed, 8 Sep 2004 21:37:51 +0200

Thanks: yes! The first tip came from Anjo. Thanks all.

Wolfram Stebel
Flutgrabenstr. 19, 35576 Wetzlar
Tel. 06441/48164, Mobil: 0172/6558588
Mailto: email@hidden


---------

Am 08.09.2004 um 08:32 schrieb Wolfram Stebel:

Is that true, or am i missing some essential information?

You are probably using a non-syncing component.

Cheers, Anjo

----------


On 08.09.2004, at 17:33, <email@hidden> wrote:

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.


References: 
 >RE: Buggy WO Doc with performParentAction (From: <email@hidden>)

  • Prev by Date: RE: Buggy WO Doc with performParentAction
  • Next by Date: Re: Problem with dynamic downloads on IE on windows
  • Previous by thread: RE: Buggy WO Doc with performParentAction
  • Next by thread: Problem with dynamic downloads on IE on windows
  • Index(es):
    • Date
    • Thread