• 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
Reusable Component - create action binding
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Reusable Component - create action binding


  • Subject: Reusable Component - create action binding
  • From: "John Huss" <email@hidden>
  • Date: Thu, 10 Apr 2008 13:15:52 -0500

I'm trying to create a reusable component that has an action binding (that ends up being bound to a submit button).

The documentation here is helpful, but I'm wondering about this:

When using the child component, it shows the action binding as a string:

Parent's Declarations File (excerpt)

ALERT: AlertPanel {
      ...
      parentAction = "respondToAlert";
};
But I was expecting to a direct reference without the quotes, like:

     parentAction = respondToAlert;

Actually, doing this works, but it causes the action method to be invoked many times, whereas using the string it is only invoked once.

The java file for my child component has something like this:

    public String parentAction;

    public WOActionResults submitButtonAction() {
        return performParentAction( parentAction );
    }

So, how should I be doing this?
 _______________________________________________
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

  • Follow-Ups:
    • Re: Reusable Component - create action binding
      • From: Chuck Hill <email@hidden>
  • Prev by Date: Re: Apache 2.2 mod_WebObjects.so on linux
  • Next by Date: Re: Reusable Component - create action binding
  • Previous by thread: Re: Leaving WebObjects...think biz
  • Next by thread: Re: Reusable Component - create action binding
  • Index(es):
    • Date
    • Thread