Re: associate subcomponent to parent componet
Re: associate subcomponent to parent componet
- Subject: Re: associate subcomponent to parent componet
- From: Jean-François Veillette <email@hidden>
- Date: Tue, 15 Jun 2004 12:49:08 -0400
You can also use a binding to your component identifying the action to
be perfomed when your component needs to trigger an action, this would
make your sub-component a bit more generic and reusable.
one simple way to do :
in your GenericComponent.java :
public boolean synchronizeVariableWithBinding() { return false; }
in your GenericComponent.wod
PerformAction: WOButton { action = ^action; }
in your page that use that component
gc: GenericComponent { action =
myActionMethodThatTheSubComponentShouldTrigger; }
- jfv
Le 04-06-15, ` 11:41, Kaj Hejer a icrit :
At 20:57 +0530 15-06-04, Kranthi Sagar wrote:
Hi all,
Is there any way by which I can associate a subcomponent to a method
in the parent component. I mean I have a submit button in my
subcomponent. Now can I associate the action in the parent component
to this button. I know this is a foolish question. But my design
forces me to do this. I will be thankful if someone could tell em if
this is really possible.
Yes! :)
You can use WOComponent.performParentAction
See
<url:http://developer.apple.com/documentation/WebObjects/Reference/
API/com/webobjects/appserver/
WOComponent.html#performParentAction(java.lang.String)> for more info.
-Kaj :)
_______________________________________________
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.
_______________________________________________
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.