• 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: David Holt <email@hidden>
  • Date: Tue, 29 May 2012 17:18:00 -0700


On 2012-05-29, at 5:13 PM, David Holt wrote:

Here are the rules I'm using that relate to creating my entity with an enum attribute:

60 : destinationEntity.name = 'Type' => localizeDisplayKeys = "true" [com.webobjects.directtoweb.BooleanAssignment]
65 : (task = 'edit' and propertyKey = 'type') => componentName = "ERD2WEditToOneRelationship" [com.webobjects.directtoweb.Assignment]
65 : (task = 'edit' and propertyKey = 'type') => toOneUIStyle = "popup" [com.webobjects.directtoweb.Assignment]

Works fine over here.

Actually disregard this comment. I just realized I changed "type" from an enum to an EO at some point. Sorry about that.


David




On 2012-05-29, at 4:49 PM, Paul Hoadley wrote:

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