Have a look on the examples : /Developer/Examples/JavaWebObjects/Frameworks/WOComponentElements
In WXActionURL.java you have exactly what you a looking for :
/**
* Override of invokeAction method - this method is used to perform the action
* from the bindings. This method matches the sender ID with the element ID
* (to ensure this is the instance we want) and then returns the action from
* the bindings.
*/
public WOActionResults invokeAction( WOContext aContext, WORequest aRequest ) {
if ( aContext.senderID().equals( aContext.elementID() ) ) {
return (WOActionResults)valueForBinding( "action" );
}
return null;
}
}
HTH,
Stephane
Le 25 oct. 05, à 00:33, Miguel Arroz a écrit :
Hi!
I'm trying some AJAX stuff, and I need to work with the element IDs of the objects. While building the page, i just ask the context what is the current elementID(). But how do I do the reverse operation? How can I ask the context what is the object associated with some ID?
Yours
Miguel Arroz
"The world lies in the hands of evil
And we pray it would last" -- Apocalyptica, Life Burns!
Miguel Arroz
http://www.ipragma.com
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list ([email protected])
Help/Unsubscribe/Update your Subscription:
http://lists.apple.com/mailman/options/webobjects-dev/stephane.guyot11%40wanadoo.fr
This email sent to [EMAIL PROTECTED]
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list ([email protected]) Help/Unsubscribe/Update your Subscription: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com
This email sent to [email protected]
