• 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: Greg Hulands <email@hidden>
  • Date: Tue, 25 Oct 2005 09:48:42 +1000

I have filed an enhancement request for this. I wanted to implement a comprehensive logging system for user testing so you can see the exact path a user took to cause the application to break. Currently you can only see the page sequences returned that occurs and not the actions that invoke it. For example if you are doing something that doesn't require the page to reload, like adding to a selection, you may return the same component, NullComponent, that is empty. If you return the same component for the deselect method, then there is no way to determine whether the user selected or deselected.

What I asked for in the bug report was for a method to get the target WOAssociation for a request, so that if there is an action binding, you can log out the name of the action.

Make sure you file something similar so that the engineers see it is a requested feature.

Greg

On 25/10/2005, at 8:43 AM, Chuck Hill wrote:


On Oct 24, 2005, at 3:33 PM, Miguel Arroz wrote:


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?


Short answer: can't.

Slightly longer answer: while there might be some way, deep down in private API, I've never seen it. This is not how WO works. During the invokeAction phase the tree of elements is traversed, and invokeAction is called on each one. Each element can do
(a) nothing
(b) whatever it pleases :-)
(c) check and see if the action is for it:
if (url.elementId == context.elementId) {
// Yippee, it's for me!
}


You can also check url.elementId.startsWith(context.elementId) to see if the action is for one of your child elements.

Chuck


--
Coming in 2006 - an introduction to web applications using WebObjects and Xcode http://www.global-village.net/wointro


Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global-village.net/products/ practical_webobjects




_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
40framedphotographics.com


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: email@hidden
References: 
 >Obtaining the elementID (From: Miguel Arroz <email@hidden>)
 >Re: Obtaining the elementID (From: Chuck Hill <email@hidden>)

  • Prev by Date: Re: Obtaining the elementID
  • Next by Date: Re: MORE Escape character question
  • Previous by thread: Re: Obtaining the elementID
  • Next by thread: Re: Obtaining the elementID
  • Index(es):
    • Date
    • Thread