• 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: D2W: Selectors for enum types?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: D2W: Selectors for enum types?


  • Subject: Re: D2W: Selectors for enum types?
  • From: Paul Hoadley <email@hidden>
  • Date: Wed, 30 May 2012 09:19:39 +0930

On 30/05/2012, at 9:11 AM, Ramsey Gurley wrote:

Oh, sorry. Misread the method name. I read it as editPageWithEntityNamed.  Yes, your object should exist. What's the stack trace again?

May 30 09:13:20 SurvStarAdmin[60371] WARN  NSLog (CreateOrganisation) - <com.webobjects.appserver._private.WOComponentRequestHandler>: Exception occurred while handling request:
java.lang.IllegalStateException: Destination entity could not be retrieved from EO of bindings. Either set the "sourceObject" to an EO, provide the "sourceEntityName" and "relationshipKey", the "destinationEntityName" or the "possibleChoices" binding.
[2012-5-30 9:13:20 CST] <WorkerThread0> java.lang.IllegalStateException: Destination entity could not be retrieved from EO of bindings. Either set the "sourceObject" to an EO, provide the "sourceEntityName" and "relationshipKey", the "destinationEntityName" or the "possibleChoices" binding.
at er.extensions.components.ERXArrayChooser._destinationEntityName(ERXArrayChooser.java:263)
at er.extensions.components.ERXArrayChooser.destinationEntityName(ERXArrayChooser.java:234)
at er.extensions.components.ERXArrayChooser.dataSource(ERXArrayChooser.java:317)
at er.extensions.components.ERXArrayChooser.theList(ERXArrayChooser.java:420)
at er.extensions.woextensions.WOToOneRelationship.theList(WOToOneRelationship.java:127)

This is a different entity to the one I was discussing earlier in the thread, though it's basically the same situation: an attribute using an enum as a custom type.  Incidentally, it's the same issue I'm discussing in another thread: this attribute is added to the entity at runtime.  I'm pretty sure that's all working fine, as I can display the enum value in an inspect page, and I can edit the enum value in a normal edit page—everything goes to and from the DB as intended.  It's just the wizard creation page that's got me stumped.  I don't have any additional rules specific for creation, just the ones described in your talk for the edit task using ERD2WEditToOneRelationship.


-- 
Paul.

http://logicsquad.net/


 _______________________________________________
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: D2W: Selectors for enum types?
      • From: Ramsey Gurley <email@hidden>
    • Re: D2W: Selectors for enum types?
      • From: David Holt <email@hidden>
References: 
 >D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Paul Hoadley <email@hidden>)
 >Re: D2W: Selectors for enum types? (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: D2W: Selectors for enum types?
  • Next by Date: Re: D2W: Selectors for enum types?
  • Previous by thread: Re: D2W: Selectors for enum types?
  • Next by thread: Re: D2W: Selectors for enum types?
  • Index(es):
    • Date
    • Thread