• 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: classDescriptionForDestinationKey returning Object instead of the good class
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: classDescriptionForDestinationKey returning Object instead of the good class


  • Subject: Re: classDescriptionForDestinationKey returning Object instead of the good class
  • From: Mike Schrag <email@hidden>
  • Date: Fri, 20 May 2011 08:42:29 -0400

>> Now, the problem is that the "commits" array is always empty in the response, even if I pass an array with two commits in them. I found out that the problem is because a commit have a "id" attribute, so ERRest try to find an object with this id. So I removed "id" from the request just to see how far it will go, and I'm getting those:
> you can set a new ERXRestFormatDelegate on the json format to redefine what the "id" key is ... we should probably convert that over to be a property lookup in the ERXRestFormatDelegate constructor.
>
>> What do I need to do in my class so that the descriptor returns a IndexedPropertyDescriptor instead of PropertyDescriptor?  Both GHPayload and GHCommit have getters starting with "get" (I thought the problem was there, before I didn't have any "get" in from the getters name).
> indexed properties aren't supported in the public wonder version .... try on my repo and see if it behaves differently?
actually, i think you only get indexed property descriptors if you explicitly declare your descriptors ... that said, i thought there was special cased code for dealing with Object.class, that it just ignores the fact that it doesn't know what keys are available ... i'll tinker with it.

ms _______________________________________________
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: classDescriptionForDestinationKey returning Object instead of the good class
      • From: Mike Schrag <email@hidden>
References: 
 >classDescriptionForDestinationKey returning Object instead of the good class (From: Pascal Robert <email@hidden>)
 >Re: classDescriptionForDestinationKey returning Object instead of the good class (From: Mike Schrag <email@hidden>)

  • Prev by Date: Re: classDescriptionForDestinationKey returning Object instead of the good class
  • Next by Date: Re: Re: Using DataGrid in WO
  • Previous by thread: Re: classDescriptionForDestinationKey returning Object instead of the good class
  • Next by thread: Re: classDescriptionForDestinationKey returning Object instead of the good class
  • Index(es):
    • Date
    • Thread