Re: Error: table "eof_tmp_table" does not exist.
Back to square one. I was hoping that I could create a new project on the external hard drive, set a include path to make the eogenerated source files visible, and be on my way. NOPE! Still can't see the eogenerated files. So, I made a new project, and I created the "Sources" directory structure ahead of time, hoping that if the directory was not created by eogenerator, then the files might be visible. By removing all the filters I was able to see the folder, but not the contents. Setting an includes path in java build paths did not help. It seems that out of everything I tried before, the only thing that seemed to actually work was importing the project into a new workspace. Who knows, maybe that wasn't it and it was just chance. I'm going to run disk utility to see if maybe there's an issue with the disk permissions etc. On Nov 18, 2011, at 9:38 PM, Kevin Spake wrote: > I looked at those. I unchecked every single one and the folder was still > invisible. > > On Nov 18, 2011, at 8:43 PM, David Avendasora wrote: > >> >> On Nov 19, 2011, at 5:41 AM, Kevin Spake wrote: >>> >>> The bizarre thing (to me) is that the eo folder is just invisible to >>> Eclipse. Even in Navigator view, the components folder is visible, but >>> the eo folder, which is in the same folder as components, is not >>> visible. Eo is in Finder, and i can go into it and open the java files >>> but eclipse just doesn't see it. >> >> I didn't see anyone suggest looking at the filters on the WOExplorer view. >> >> It would be very weird to have filtered out the directory you created, but >> it is consistent with when you created a new workspace it showed up. >> >> Dave >> >> > > ___ > 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: > http://lists.apple.com/mailman/options/webobjects-dev/sparky005s%40yahoo.com > > This email sent to sparky0...@yahoo.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
inheritance (EO Subclass) ?
I am learning about subclassing EOs. I have an entity; Contact and three subclasses Employee, VendorContact, MediaContact the qualifiers are: isEmployee (bool) isVendorContact (bool) isMediaContact (bool) ie: isEmployee <> 0 isVendorContact <> 0 isMediaContact <> 0 testbed=# select * from t_contact; c_first_name | c_last_name | id | c_is_vendor_contact | c_is_media_contact | c_is_employee --+-++-++--- Ted | Petrosky| 1 | t | t | f Bill | Simpson | 2 | t | t | t Harold | Wall| 3 | f | t | f so I set up a test page simple with ordered lists wrapped in WOReps and queried the backend to populate the NSArrays: theEC = ERXEC.newEditingContext(); vendors = VendorContact.fetchVendorContacts(theEC, VendorContact.IS_VENDOR_CONTACT.eq(true), null); employees = CompanyEmployee.fetchCompanyEmployees(theEC, CompanyEmployee.IS_EMPLOYEE.eq(true), null); mediaContacts = MediaContact.fetchMediaContacts(theEC, MediaContact.IS_MEDIA_CONTACT.eq(true), null); System.out.println("Media List " + mediaContacts); System.out.println("Employees List " + employees); System.out.println("Vendor List " + vendors); After I ran my app it barfed at me: Error: java.lang.IllegalArgumentException: While trying to set the field "anEmployee" on an object of type com.eltek.components.Main we expected a com.eltek.model.CompanyEmployee but received a com.eltek.model.VendorContact with a value of . This often happens if you forget to use a formatter. Now I understand that I can not fetch these entities in a single EC as any contact could be a member of any or all subclasses. Did I miss something (a property maybe [since everything is a property]) or must I use multiple ECs in this case? Obviously, that was my solution, set up a different EC for each subclass. Then all is well (but is it?). Ted ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: inheritance (EO Subclass) ?
Ted I'm no expert on inheritance, but typically the setup should be Contact (Parent class) with a idContactType, marked as Abstract ContactType (1, Employee; 2, Vendor; 3, Media) Employee (Parent = Contact, Qualifier idContactType = 1) VendorContact (Parent = Contact, Qualifier idContactType = 2) MediaContact (Parent = Contact, Qualifier idContactType = 3) Then from your Company EO your relationship would be to Employee EO. Your fetches would be vendors = VendorContact.fetchVendorContact(ed, VendorContact.SOME_INTERESTING.eq(someValue), null); The type qualifier would be taken care of for you... Paul On Nov 19, 2011, at 9:00 AM, Theodore Petrosky wrote: > I am learning about subclassing EOs. > > I have an entity; Contact > > and three subclasses Employee, VendorContact, MediaContact > > the qualifiers are: isEmployee (bool) isVendorContact (bool) > isMediaContact (bool) > > ie: > isEmployee <> 0 > isVendorContact <> 0 > isMediaContact <> 0 > > testbed=# select * from t_contact; > c_first_name | c_last_name | id | c_is_vendor_contact | c_is_media_contact | > c_is_employee > --+-++-++--- > Ted | Petrosky| 1 | t | t | f > Bill | Simpson | 2 | t | t | t > Harold | Wall| 3 | f | t | f > > so I set up a test page simple with ordered lists wrapped in WOReps > > and queried the backend to populate the NSArrays: > > theEC = ERXEC.newEditingContext(); > > vendors = VendorContact.fetchVendorContacts(theEC, > VendorContact.IS_VENDOR_CONTACT.eq(true), null); > employees = CompanyEmployee.fetchCompanyEmployees(theEC, > CompanyEmployee.IS_EMPLOYEE.eq(true), null); > mediaContacts = MediaContact.fetchMediaContacts(theEC, > MediaContact.IS_MEDIA_CONTACT.eq(true), null); > > System.out.println("Media List " + mediaContacts); > System.out.println("Employees List " + employees); > System.out.println("Vendor List " + vendors); > > After I ran my app it barfed at me: > > Error:java.lang.IllegalArgumentException: While trying to set the > field "anEmployee" on an object of type com.eltek.components.Main we expected > a com.eltek.model.CompanyEmployee but received a > com.eltek.model.VendorContact with a value of pk:"1">. This often happens if you forget to use a formatter. > > Now I understand that I can not fetch these entities in a single EC as any > contact could be a member of any or all subclasses. > > Did I miss something (a property maybe [since everything is a property]) or > must I use multiple ECs in this case? Obviously, that was my solution, set up > a different EC for each subclass. Then all is well (but is it?). > > Ted > > ___ > 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: > http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com > > This email sent to p...@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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: inheritance (EO Subclass) ?
i guess i don't see how in your example a contact could be both an employee and a vendor and a media rep it seems to me that to use a contactType column, limits the contact to one and only one subclass my method lets a contact belong to many different subclasses. I was questioning if this approach was 'good' or was I boxing myself into a corner that would bite me later. Ted --- On Sat, 11/19/11, Paul Yu wrote: > From: Paul Yu > Subject: Re: inheritance (EO Subclass) ? > To: "Theodore Petrosky" > Cc: webobjects-dev@lists.apple.com > Date: Saturday, November 19, 2011, 9:42 AM > Ted > > I'm no expert on inheritance, but typically the setup > should be > > Contact (Parent class) with a idContactType, marked as > Abstract > ContactType (1, Employee; 2, Vendor; 3, Media) > Employee (Parent = Contact, Qualifier idContactType = 1) > VendorContact (Parent = Contact, Qualifier idContactType = > 2) > MediaContact (Parent = Contact, Qualifier idContactType = > 3) > > Then from your > Company EO your relationship would be to Employee EO. > > Your fetches would be > > vendors = VendorContact.fetchVendorContact(ed, > VendorContact.SOME_INTERESTING.eq(someValue), null); > > The type qualifier would be taken care of for you... > > Paul > On Nov 19, 2011, at 9:00 AM, Theodore Petrosky wrote: > > > I am learning about subclassing EOs. > > > > I have an entity; Contact > > > > and three subclasses Employee, VendorContact, > MediaContact > > > > the qualifiers are: isEmployee (bool) > isVendorContact (bool) isMediaContact (bool) > > > > ie: > > isEmployee <> 0 > > isVendorContact <> 0 > > isMediaContact <> 0 > > > > testbed=# select * from t_contact; > > c_first_name | c_last_name | id | c_is_vendor_contact | c_is_media_contact > > | c_is_employee > > --+-++-++--- > > Ted | Petrosky | 1 | t | t | f > > Bill | Simpson | 2 | t | t | t > > Harold | Wall | 3 | f | t | t > > > > so I set up a test page simple with ordered lists > wrapped in WOReps > > > > and queried the backend to populate the NSArrays: > > > > theEC = ERXEC.newEditingContext(); > > > > vendors = VendorContact.fetchVendorContacts(theEC, > VendorContact.IS_VENDOR_CONTACT.eq(true), null); > > employees = > CompanyEmployee.fetchCompanyEmployees(theEC, > CompanyEmployee.IS_EMPLOYEE.eq(true), null); > > mediaContacts = MediaContact.fetchMediaContacts(theEC, > MediaContact.IS_MEDIA_CONTACT.eq(true), null); > > > > System.out.println("Media List " + mediaContacts); > > System.out.println("Employees List " + employees); > > System.out.println("Vendor List " + vendors); > > > > After I ran my app it barfed at me: > > > > Error: > java.lang.IllegalArgumentException: While trying to set the > field "anEmployee" on an object of type > com.eltek.components.Main we expected a > com.eltek.model.CompanyEmployee but received a > com.eltek.model.VendorContact with a value of > . This often > happens if you forget to use a formatter. > > > > Now I understand that I can not fetch these entities > in a single EC as any contact could be a member of any or > all subclasses. > > > > Did I miss something (a property maybe [since > everything is a property]) or must I use multiple ECs in > this case? Obviously, that was my solution, set up a > different EC for each subclass. Then all is well (but is > it?). > > > > Ted > > > > ___ > > 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: > > http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com > > > > This email sent to p...@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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Error: table "eof_tmp_table" does not exist.
I am pretty sure that he has it in a package under Sources. He sent the project to Pascal and it worked OK for him. This is one very, very weird problem. On 2011-11-19, at 5:06 AM, David Avendasora wrote: > Hi Kevin, > > From one of your earlier emails: > > > Your "eo" directory is NOT in Sources, it is in it's own directory. This is > fine as long as you bless "eo" as a "Sources Folder" like this: > > > > I bet the eo directory is in the project, just not where you expect it and > Eclipse is certainly not recognizing it as a valid location for Java source > code files so they don't get compiled. > > Dave -- Chuck Hill Senior Consultant / VP Development 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 smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: inheritance (EO Subclass) ?
On 2011-11-19, at 8:30 AM, Theodore Petrosky wrote: > i guess i don't see how in your example a contact could be both an employee > and a vendor and a media rep They can't that is the point of inheritance. A Dog can be a Mammal, but it can't be a Cat or a Rat (well Chihuahuas excepted). This is not a valid use of inheritance. EOF will not allow this. Look at the Role pattern. > it seems to me that to use a contactType column, limits the contact to one > and only one subclass Yes, that is absolutely required. This and only this is a correct use of inheritance: http://en.wikipedia.org/wiki/Liskov_substitution_principle > my method lets a contact belong to many different subclasses. I was > questioning if this approach was 'good' or was I boxing myself into a corner > that would bite me later. EOF is going to explode! Chuck > --- On Sat, 11/19/11, Paul Yu wrote: > >> From: Paul Yu >> Subject: Re: inheritance (EO Subclass) ? >> To: "Theodore Petrosky" >> Cc: webobjects-dev@lists.apple.com >> Date: Saturday, November 19, 2011, 9:42 AM >> Ted >> >> I'm no expert on inheritance, but typically the setup >> should be >> >> Contact (Parent class) with a idContactType, marked as >> Abstract >> ContactType (1, Employee; 2, Vendor; 3, Media) >> Employee (Parent = Contact, Qualifier idContactType = 1) >> VendorContact (Parent = Contact, Qualifier idContactType = >> 2) >> MediaContact (Parent = Contact, Qualifier idContactType = >> 3) >> >> Then from your >> Company EO your relationship would be to Employee EO. >> >> Your fetches would be >> >> vendors = VendorContact.fetchVendorContact(ed, >> VendorContact.SOME_INTERESTING.eq(someValue), null); >> >> The type qualifier would be taken care of for you... >> >> Paul >> On Nov 19, 2011, at 9:00 AM, Theodore Petrosky wrote: >> >>> I am learning about subclassing EOs. >>> >>> I have an entity; Contact >>> >>> and three subclasses Employee, VendorContact, >> MediaContact >>> >>> the qualifiers are: isEmployee (bool) >> isVendorContact (bool) isMediaContact (bool) >>> >>> ie: >>> isEmployee <> 0 >>> isVendorContact <> 0 >>> isMediaContact <> 0 >>> >>> testbed=# select * from t_contact; >>> c_first_name | c_last_name | id | c_is_vendor_contact | c_is_media_contact >>> | c_is_employee >>> --+-++-++--- >>> Ted | Petrosky| 1 | t| t | f >>> Bill | Simpson | 2 | t| t | t >>> Harold | Wall| 3 | f| t | t >>> >>> so I set up a test page simple with ordered lists >> wrapped in WOReps >>> >>> and queried the backend to populate the NSArrays: >>> >>> theEC = ERXEC.newEditingContext(); >>> >>> vendors = VendorContact.fetchVendorContacts(theEC, >> VendorContact.IS_VENDOR_CONTACT.eq(true), null); >>> employees = >> CompanyEmployee.fetchCompanyEmployees(theEC, >> CompanyEmployee.IS_EMPLOYEE.eq(true), null); >>> mediaContacts = MediaContact.fetchMediaContacts(theEC, >> MediaContact.IS_MEDIA_CONTACT.eq(true), null); >>> >>> System.out.println("Media List " + mediaContacts); >>> System.out.println("Employees List " + employees); >>> System.out.println("Vendor List " + vendors); >>> >>> After I ran my app it barfed at me: >>> >>> Error: >> java.lang.IllegalArgumentException: While trying to set the >> field "anEmployee" on an object of type >> com.eltek.components.Main we expected a >> com.eltek.model.CompanyEmployee but received a >> com.eltek.model.VendorContact with a value of >> . This often >> happens if you forget to use a formatter. >>> >>> Now I understand that I can not fetch these entities >> in a single EC as any contact could be a member of any or >> all subclasses. >>> >>> Did I miss something (a property maybe [since >> everything is a property]) or must I use multiple ECs in >> this case? Obviously, that was my solution, set up a >> different EC for each subclass. Then all is well (but is >> it?). >>> >>> Ted >>> >>> ___ >>> 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: >>> http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com >>> >>> This email sent to p...@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: > http://lists.apple.com/mailman/options/webobjects-dev/chill%40global-village.net > > This email sent to ch...@global-village.net -- Chuck Hill Senior Consultant / VP Development 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/prac
Re: inheritance (EO Subclass) ?
Agreed, this is not a case where you want inheritance. On Nov 19, 2011, at 9:49 AM, Chuck Hill wrote: > > On 2011-11-19, at 8:30 AM, Theodore Petrosky wrote: > >> i guess i don't see how in your example a contact could be both an employee >> and a vendor and a media rep > > They can't that is the point of inheritance. A Dog can be a Mammal, but it > can't be a Cat or a Rat (well Chihuahuas excepted). This is not a valid use > of inheritance. EOF will not allow this. Look at the Role pattern. A good link Chuck pointed to in an earlier discussion on this topic. http://objectdiscovery.com/solutions/publications/roles/index.html > > >> it seems to me that to use a contactType column, limits the contact to one >> and only one subclass > > Yes, that is absolutely required. This and only this is a correct use of > inheritance: > http://en.wikipedia.org/wiki/Liskov_substitution_principle > > >> my method lets a contact belong to many different subclasses. I was >> questioning if this approach was 'good' or was I boxing myself into a corner >> that would bite me later. > > EOF is going to explode! > > > Chuck > > >> --- On Sat, 11/19/11, Paul Yu wrote: >> >>> From: Paul Yu >>> Subject: Re: inheritance (EO Subclass) ? >>> To: "Theodore Petrosky" >>> Cc: webobjects-dev@lists.apple.com >>> Date: Saturday, November 19, 2011, 9:42 AM >>> Ted >>> >>> I'm no expert on inheritance, but typically the setup >>> should be >>> >>> Contact (Parent class) with a idContactType, marked as >>> Abstract >>> ContactType (1, Employee; 2, Vendor; 3, Media) >>> Employee (Parent = Contact, Qualifier idContactType = 1) >>> VendorContact (Parent = Contact, Qualifier idContactType = >>> 2) >>> MediaContact (Parent = Contact, Qualifier idContactType = >>> 3) >>> >>> Then from your >>> Company EO your relationship would be to Employee EO. >>> >>> Your fetches would be >>> >>> vendors = VendorContact.fetchVendorContact(ed, >>> VendorContact.SOME_INTERESTING.eq(someValue), null); >>> >>> The type qualifier would be taken care of for you... >>> >>> Paul >>> On Nov 19, 2011, at 9:00 AM, Theodore Petrosky wrote: >>> I am learning about subclassing EOs. I have an entity; Contact and three subclasses Employee, VendorContact, >>> MediaContact the qualifiers are: isEmployee (bool) >>> isVendorContact (bool) isMediaContact (bool) ie: isEmployee <> 0 isVendorContact <> 0 isMediaContact <> 0 testbed=# select * from t_contact; c_first_name | c_last_name | id | c_is_vendor_contact | c_is_media_contact | c_is_employee --+-++-++--- Ted | Petrosky| 1 | t| t | f Bill | Simpson | 2 | t| t | t Harold | Wall| 3 | f| t | t so I set up a test page simple with ordered lists >>> wrapped in WOReps and queried the backend to populate the NSArrays: theEC = ERXEC.newEditingContext(); vendors = VendorContact.fetchVendorContacts(theEC, >>> VendorContact.IS_VENDOR_CONTACT.eq(true), null); employees = >>> CompanyEmployee.fetchCompanyEmployees(theEC, >>> CompanyEmployee.IS_EMPLOYEE.eq(true), null); mediaContacts = MediaContact.fetchMediaContacts(theEC, >>> MediaContact.IS_MEDIA_CONTACT.eq(true), null); System.out.println("Media List " + mediaContacts); System.out.println("Employees List " + employees); System.out.println("Vendor List " + vendors); After I ran my app it barfed at me: Error: >>> java.lang.IllegalArgumentException: While trying to set the >>> field "anEmployee" on an object of type >>> com.eltek.components.Main we expected a >>> com.eltek.model.CompanyEmployee but received a >>> com.eltek.model.VendorContact with a value of >>> . This often >>> happens if you forget to use a formatter. Now I understand that I can not fetch these entities >>> in a single EC as any contact could be a member of any or >>> all subclasses. Did I miss something (a property maybe [since >>> everything is a property]) or must I use multiple ECs in >>> this case? Obviously, that was my solution, set up a >>> different EC for each subclass. Then all is well (but is >>> it?). Ted ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/pyu%40mac.com This email sent to p...@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
null pointer maven create project
speaking of maven, Whenever I try to create a new maven project I get the npe. mac os x 10.6.8, Eclipse 3.6, archetype 2.017 or 2.1, updated eclipse plugins. mvn from the command line can build from archetypes. Is it time to re setup from 3.7? or can others create new projects within eclipse using the maven archetypes? Thanks, ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink
I just found a difference between the URL generated by ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink. In SimpleBlog, I told ERRest that the primary key for a BlogEntry is the title instead of the primary key in the table. To do that, I created a BlogEntryRestDelegate class and: public Object primaryKeyForObject(Object obj, ERXRestContext context) { return ((BlogEntry)obj).title(); } public Object objectOfEntityWithID(EOClassDescription entity, Object id, ERXRestContext context) { NSArray entries = ERXQ.filtered(BlogEntry.fetchAllBlogEntries(ERXEC.newEditingContext()), ERXQ.is("title", id)); return entries.size() == 0 ? null : entries.objectAtIndex(0); } That's working fine for ERXRouteLink, the generated link is using the title instead of the primary key, so I get /WOWODC.html instead of /1.html. Life is good… until I use ERXRouteUrlUtils.actionUrlForRecord, in that case, I was still getting 1.html. Where is the difference? ERXRouteLink use this to get the primary key: Object entityID = IERXRestDelegate.Factory.delegateForEntityNamed(record.entityName()).primaryKeyForObject(record, new ERXRestContext(record.editingContext())); ERXRouteUrlUtils.actionUrlForRecord use: record.primaryKeyInTransaction() which at the end of the chain, calls ERXEOControlUtilities.primaryKeyObjectForObject. I changed locally the code so that actionUrlForRecord use the same logic as ERXRouteLink and it works fine, so anyone have a problem if I commit that change to Wonder? ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink
sounds right On Nov 19, 2011, at 12:33 PM, Pascal Robert wrote: > I just found a difference between the URL generated by > ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink. In SimpleBlog, I told > ERRest that the primary key for a BlogEntry is the title instead of the > primary key in the table. To do that, I created a BlogEntryRestDelegate class > and: > > public Object primaryKeyForObject(Object obj, ERXRestContext context) { >return ((BlogEntry)obj).title(); > } > > public Object objectOfEntityWithID(EOClassDescription entity, Object id, > ERXRestContext context) { >NSArray entries = > ERXQ.filtered(BlogEntry.fetchAllBlogEntries(ERXEC.newEditingContext()), > ERXQ.is("title", id)); >return entries.size() == 0 ? null : entries.objectAtIndex(0); > } > > That's working fine for ERXRouteLink, the generated link is using the title > instead of the primary key, so I get /WOWODC.html instead of /1.html. Life is > good… until I use ERXRouteUrlUtils.actionUrlForRecord, in that case, I was > still getting 1.html. > > Where is the difference? ERXRouteLink use this to get the primary key: > > Object entityID = > IERXRestDelegate.Factory.delegateForEntityNamed(record.entityName()).primaryKeyForObject(record, > new ERXRestContext(record.editingContext())); > > ERXRouteUrlUtils.actionUrlForRecord use: > > record.primaryKeyInTransaction() > > which at the end of the chain, calls > ERXEOControlUtilities.primaryKeyObjectForObject. I changed locally the code > so that actionUrlForRecord use the same logic as ERXRouteLink and it works > fine, so anyone have a problem if I commit that change to Wonder? > > ___ > 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: > http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com > > This email sent to msch...@pobox.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Sencha Touch?
Hello - I am thinking that for our next project we would go the complete ERREST route and use a client side framework like Sencha / Sencha Touch for the UI. Anyone have any thoughts? Experiences? Other recommendations? Thanks James smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Sencha Touch?
On Nov 19, 2011, at 1:33 PM, James Cicenia wrote: > I am thinking that for our next project we would go the complete ERREST route +1 ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: null pointer maven create project (Mr. G Brown)
I also get the NPE with 3.7, but 3.4 seems ok. I guess I am on 3.4 still ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink
Done. > sounds right > > On Nov 19, 2011, at 12:33 PM, Pascal Robert wrote: > >> I just found a difference between the URL generated by >> ERXRouteUrlUtils.actionUrlForRecord vs ERXRouteLink. In SimpleBlog, I told >> ERRest that the primary key for a BlogEntry is the title instead of the >> primary key in the table. To do that, I created a BlogEntryRestDelegate >> class and: >> >> public Object primaryKeyForObject(Object obj, ERXRestContext context) { >> return ((BlogEntry)obj).title(); >> } >> >> public Object objectOfEntityWithID(EOClassDescription entity, Object id, >> ERXRestContext context) { >> NSArray entries = >> ERXQ.filtered(BlogEntry.fetchAllBlogEntries(ERXEC.newEditingContext()), >> ERXQ.is("title", id)); >> return entries.size() == 0 ? null : entries.objectAtIndex(0); >> } >> >> That's working fine for ERXRouteLink, the generated link is using the title >> instead of the primary key, so I get /WOWODC.html instead of /1.html. Life >> is good… until I use ERXRouteUrlUtils.actionUrlForRecord, in that case, I >> was still getting 1.html. >> >> Where is the difference? ERXRouteLink use this to get the primary key: >> >> Object entityID = >> IERXRestDelegate.Factory.delegateForEntityNamed(record.entityName()).primaryKeyForObject(record, >> new ERXRestContext(record.editingContext())); >> >> ERXRouteUrlUtils.actionUrlForRecord use: >> >> record.primaryKeyInTransaction() >> >> which at the end of the chain, calls >> ERXEOControlUtilities.primaryKeyObjectForObject. I changed locally the code >> so that actionUrlForRecord use the same logic as ERXRouteLink and it works >> fine, so anyone have a problem if I commit that change to Wonder? >> >> ___ >> 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: >> http://lists.apple.com/mailman/options/webobjects-dev/mschrag%40pobox.com >> >> This email sent to msch...@pobox.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Sencha Touch?
we're working on a pure errest app at the moment, but with jquery mobile on the front end. simon On 19 November 2011 18:33, James Cicenia wrote: > Hello - > > I am thinking that for our next project we would go the complete ERREST route > and use a client side framework like Sencha / Sencha Touch for the UI. > > Anyone have any thoughts? Experiences? Other recommendations? > > Thanks > James > ___ > 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: > http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk > > This email sent to si...@potwells.co.uk > > ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: null pointer maven create project (Mr. G Brown)
On 20/11/2011, at 7:22 AM, Mr. G Brown wrote: > I also get the NPE with 3.7, but 3.4 seems ok. > > I guess I am on 3.4 still A stack trace will help your cause... Lachlan Deck lachlan.d...@gmail.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: null pointer maven create project (Mr. G Brown)
Yes, bad paramters somewhere in GB of parms? Errors occurred during the build. Errors running builder 'WOLips Incremental Builder' on project 'demet'. The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. The specified class for ResourceManager (org.apache.velocity.runtime.resource.ResourceManagerImpl) does not implement org.apache.velocity.runtime.resource.ResourceManager; Velocity is not initialized correctly. On Nov 19, 2011, at 4:42 PM, Lachlan Deck wrote: > On 20/11/2011, at 7:22 AM, Mr. G Brown wrote: > >> I also get the NPE with 3.7, but 3.4 seems ok. >> >> I guess I am on 3.4 still > > A stack trace will help your cause... > > Lachlan Deck > lachlan.d...@gmail.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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: Sencha Touch?
What made you go with jquery mobile vs Sencha? I was thinking that since I had to also create a web front end, Sencha would be better with its ext. - James On Nov 19, 2011, at 2:54 PM, Simon wrote: > we're working on a pure errest app at the moment, but with jquery > mobile on the front end. > > simon > > > On 19 November 2011 18:33, James Cicenia wrote: >> Hello - >> >> I am thinking that for our next project we would go the complete ERREST route >> and use a client side framework like Sencha / Sencha Touch for the UI. >> >> Anyone have any thoughts? Experiences? Other recommendations? >> >> Thanks >> James >> ___ >> 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: >> http://lists.apple.com/mailman/options/webobjects-dev/simon%40potwells.co.uk >> >> This email sent to si...@potwells.co.uk >> >> smime.p7s Description: S/MIME cryptographic signature ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Cant find imported jar
Hello list, I have Eclipse projects that consist of a Wonder Application that references a Wonder Framework. Everything compiles without error, including NBConfiguration which is resident in the Wonder framework project, but when I run I'm getting the below error about not being able to resolve a referenced import. The jdom.jar file, which contains the class JDOMException, is in my project build path (otherwise there would be compilation errors). Obviously something is out of whack, but I'm not sure where to look. Any help would be mightily appreciated. The import org.jdom cannot be resolved The constructor NBConfiguration() refers to the missing type JDOMException JDOMException cannot be resolved to a type [2011-11-19 22:45:19 CST] java.lang.Error: Unresolved compilation problems: The import org.jdom cannot be resolved The constructor NBConfiguration() refers to the missing type JDOMException JDOMException cannot be resolved to a type ___ 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: http://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com