• 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
Re: Obtaining the elementID
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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

  • Follow-Ups:
    • Re: Obtaining the elementID
      • From: Chuck Hill <email@hidden>
References: 
 >Obtaining the elementID (From: Miguel Arroz <email@hidden>)

  • Prev by Date: Re: connection dictionary error?
  • Next by Date: Re: Obtaining the elementID
  • Previous by thread: Re: Obtaining the elementID
  • Next by thread: Re: Obtaining the elementID
  • Index(es):
    • Date
    • Thread