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 (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com >> >> This email sent to programming...@mac.com > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to programming...@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com