Reusable Component - create action binding
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