Re: Obtaining the elementID
Re: Obtaining the elementID
- Subject: Re: Obtaining the elementID
- From: Stephane Guyot <email@hidden>
- Date: Wed, 26 Oct 2005 20:49:35 +0200
Miguel,
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@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden
_______________________________________________
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