difficulties with cross-model relationship
All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. T ___ 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: Pound symbol Solved...
Well not solves it, but it works, and £ symbols in the POP up menu displayed in the browser are correct When I have more time to debug I might get to the root... Gino On 19 Mar 2009, at 21:42, Ricardo J. Parada wrote: Yep... I would not say that solves it :-) On Mar 19, 2009, at 5:36 PM, Chuck Hill wrote: Mixing unicode (\u00A3) and a Latin encoding suggests that you have just hidden the problem, not solved it. Chuck On Mar 19, 2009, at 2:34 PM, Gino Pacitti wrote: Just a follow up on the pound sign... I used this in my web page HTML : meta http-equiv=Content-Type content=text/html; charset=ISO 8859-1 And used - new NSArray(new Object[] { \u00A3 15,000 property Cover}); Using \u00A3 in the String instead of implicit £ seemed to do the job... Gino On 19 Mar 2009, at 20:35, Ricardo J. Parada wrote: So what about JD-GUI? That's not something I pasted. I'm looking at the compiled code and the characters are wrong. If I do the same for the other app that does work, JD-GUI does display the characters correctly. Anyways, I think this points to a problem in Eclipse I think because it did not compile the string into a UTF-8 constant. On Mar 19, 2009, at 4:10 PM, Chuck Hill wrote: I would not interpret much into those two results. It just means the encoding type is not getting pasted. On Mar 19, 2009, at 1:01 PM, Ricardo J. Parada wrote: Another interesting discovery... In Eclipse, the .java looks like this: public String test = Niño José; and in JD-GUI it looks like this: Picture 13.png then if I simply try to copy that line of code from Eclipse into this email message then it looks as follows when I paste it in: public String test = Ni–o JosŽ; Ok... so we have three different versions of that string and no clue what's going on because Eclipse keeps telling me that the .java file is in UTF-8. But copy and paste into another app (i.e. Mail) doesn't work. On Mar 19, 2009, at 3:33 PM, Lachlan Deck wrote: Does the component of your other app have a woo file with the right encoding set? On 20/03/2009, at 6:16 AM, Ricardo J. Parada wrote: I actually created a new Wonder app with a single component Main.wo. I put this in the Main.java file. public String test = José; then I had my Main.wo display that. I built the embedded version of this app and it DOES display correctly. I'm trying to figure out why it doesn't display correctly in my other app. I'll let you know too if I find out. :-) On Mar 19, 2009, at 3:05 PM, Gino Pacitti wrote: SUre Ricardo Yes I will let you know... will have to go through some encoding documentation and do some homework.. Gino On 19 Mar 2009, at 18:59, Ricardo J. Parada wrote: Let me know if you figure it out because I have not been able to figure out this and I'm using Wonder on a small test project and have specified UTF-8 everywhere I can imagine. In my case however, it only happens when I build an embedded version of the app and run it. Strings coming from String constants in the java file (as seems to be your case) do not display correctly. On the other hand, if the Strings come from the database through EO String properties, or text in the .html or text from binding values in the .wod file, then all characters are displayed correctly. On Mar 19, 2009, at 2:41 PM, Gino Pacitti wrote: Hi Chuck Yes the Component is also set to UTF-8... If I change the encoding to Latin-1 on the HTML page I see the pound symbol but with a L at a 90 degree clockwise before it.. Gino On 19 Mar 2009, at 18:28, Chuck Hill wrote: On Mar 19, 2009, at 9:30 AM, Gino Pacitti wrote: Could anyone point me in the right direction ... I have a WOPOP UP menu item list = NSArray with entries that have £ symbols as part of the contents NSArray list = new NSArray(new Object[] { Some string with a £1 value in it}) The item is bound to a string... The HTML page as encoding set to UTF-8 yet the pop up menu item displays triangles with ? marks where the £ symbols should be What am i doing wrong Thanks in advance Is the encoding of the class file UTF-8 too? Chuck -- 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 - Gino L. Pacitti Base Enterprise UK Email: g...@base-enterprise.co.uk Phone: sales: 0845 094 9784 Mob: 07980 851 953 World Wide Phone: 02032391945 (local rate charge to wherever we are located in the world) Aol: kris121 Msn: ginok...@hotmail.com Skype: ginkris Mac.com: ginok...@mac.com http://www.base-enterprise.co.uk mail: Base Enterprise PO BOX 674 East Grinstead West Sussex RH19 3ZG Base Enterprise LTD Company
Downgrading WebObjects from 54 to 52
Title: signature Hi list, I would like to downgrade my webobject 54 to 52. (because I work on project develop with WE52 and I have some error running it on WE54) On my WE52 cd, I have 2 files "install.pkg" and "uninstall.pkg" but on my Leopard dvd, there is only the "install.pkg" file for WE54. I found in documentation a line to uninstall XCode Tools: "$ sudo Xcode directory/Library/uninstall-devtools --mode=all" seen in "About XCode Tools.pdf" but I doesn't uninstall WebObjects. I tried to install WE52 over WE54 but I'm still in 54. Any help will be very appreciated! Regards, -- Julien Verez Centre de Ressources Informatiques Universit de Lille 1 Btiment M4 59655 Villeneuve d'Ascq julien.ve...@univ-lille1.fr +33 (0)3 20 33 61 81 ___ 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: Downgrading WebObjects from 54 to 52
Hi Julien, you can use WO 5.2 and 5.4 on the same Mac. I copied all the WO 5.2 stuff under /Developer/WebObjects52 and followed the the description under http://wiki.objectstyle.org/confluence/display/WO/WO+5.4+Getting+Started#WO5.4GettingStarted-DevelopingwithbothWebObjects5.4and5.3 The changed properties files and scripts to switch between 5.2 and 5.4 are attached. Stefan Julien Verez schrieb: Hi list, I would like to downgrade my webobject 54 to 52. (because I work on project develop with WE52 and I have some error running it on WE54) On my WE52 cd, I have 2 files "install.pkg" and "uninstall.pkg" but on my Leopard dvd, there is only the "install.pkg" file for WE54. I found in documentation a line to uninstall XCode Tools: "$ sudo Xcode directory/Library/uninstall-devtools --mode=all" seen in "About XCode Tools.pdf" but I doesn't uninstall WebObjects. I tried to install WE52 over WE54 but I'm still in 54. Any help will be very appreciated! Regards, -- signature Julien Verez Centre de Ressources Informatiques Universit de Lille 1 Btiment M4 59655 Villeneuve d'Ascq julien.ve...@univ-lille1.fr +33 (0)3 20 33 61 81 ___ 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/stefan.klein%40buero-sde.de This email sent to stefan.kl...@buero-sde.de #This file stores the wo specific properties #Fri Aug 22 16:09:04 CEST 2008 wo.wosystemroot=/System wo.wolocalroot=/ wo.woroot=/ wo.dir.reference.api=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/MacOSXServer/Reference/WO54_Reference wo.version=5.4 #This file stores the wo specific properties #Fri Aug 22 16:09:04 CEST 2008 wo.wosystemroot=/Developer/WebObjects52/System wo.wolocalroot=/Developer/WebObjects52 wo.woroot=/Developer/WebObjects52 wo.dir.reference.api=/Developer/Documentation/DocSets/com.apple.ADC_Reference_Library.WebObjectsReference.docset/Contents/Resources/Documents/documentation/MacOSXServer/Reference/WO54_Reference wo.version=5.2 #!/bin/sh WO54PATH=${NEXT_ROOT} WO52PATH=/Developer/WebObjects52 TMPDIR=/tmp WOBUILDPROPS=~/Library/wobuild.properties WOVERSION=54 echo ${WOVERSION} WOSYSVERSION= WOVERSIONFILE=${WO54PATH}/System/Library/Frameworks/JavaWebObjects.framework/Resources/version.plist if [ -f ${WOVERSIONFILE} ] ; then WOSYSVERSION=`cat ${WOVERSIONFILE} | grep -A 1 CFBundleShortVersionString | \ tail -1 | sed -e 's/^.*5\.\([0-9]\).*/5\1/'` fi if [ X${WOSYSVERSION} != X54 ] ; then echo WebObjects 5.4 is not currently installed exit fi if [ ! -d ${WO52PATH}/System -a ${WOVERSION} -eq 52 ] ; then echo WebObjects 5.2 is not currently installed exit fi if [ ! -e ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL ] ; then mkdir -p ${WO52PATH}/System/Library/WebObjects/Executables ln -s /usr/bin/open ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL fi if [ -f ${WOBUILDPROPS} ] then if [ ! -f ${WOBUILDPROPS}54 ] ; then cp ${WOBUILDPROPS} ${WOBUILDPROPS}54 fi if [ ! -f ${WOBUILDPROPS}52 ] ; then cat ${WOBUILDPROPS} | sed -E s...@=${wo54path}.(System|Lib|$)@=${WO52PATH}/\...@g ; s@/\$@@ ${WOBUILDPROPS}52 fi else echo Cannot find ${WOBUILDPROPS}. You need to run WOLips at least once. exit 1 fi WOVERSTRING=`echo ${WOVERSION} | sed -E 's/^([0-9])/\1./'` echo Setting wobuild.properties for WebObjects ${WOVERSTRING} cp ${WOBUILDPROPS}${WOVERSION} ${WOBUILDPROPS} #!/bin/sh WO54PATH=${NEXT_ROOT} WO52PATH=/Developer/WebObjects52 TMPDIR=/tmp WOBUILDPROPS=~/Library/wobuild.properties WOVERSION=52 echo ${WOVERSION} WOSYSVERSION= WOVERSIONFILE=${WO54PATH}/System/Library/Frameworks/JavaWebObjects.framework/Resources/version.plist if [ -f ${WOVERSIONFILE} ] ; then WOSYSVERSION=`cat ${WOVERSIONFILE} | grep -A 1 CFBundleShortVersionString | \ tail -1 | sed -e 's/^.*5\.\([0-9]\).*/5\1/'` fi if [ X${WOSYSVERSION} != X54 ] ; then echo WebObjects 5.4 is not currently installed exit fi if [ ! -d ${WO52PATH}/System -a ${WOVERSION} -eq 52 ] ; then echo WebObjects 5.2 is not currently installed exit fi if [ ! -e ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL ] ; then mkdir -p ${WO52PATH}/System/Library/WebObjects/Executables ln -s /usr/bin/open ${WO52PATH}/System/Library/WebObjects/Executables/WOOpenURL fi if [ -f ${WOBUILDPROPS} ] then if [ ! -f ${WOBUILDPROPS}54 ] ; then cp ${WOBUILDPROPS} ${WOBUILDPROPS}54 fi if [ ! -f ${WOBUILDPROPS}52 ] ; then cat ${WOBUILDPROPS} | sed -E s...@=${wo54path}.(System|Lib|$)@=${WO52PATH}/\...@g ; s@/\$@@ ${WOBUILDPROPS}52 fi else echo Cannot find
Re: Access Control [was: Digging up a Session object from an EOGenericRecord]
On 19 mrt 2009, at 23:32, Chuck Hill wrote: On Mar 19, 2009, at 3:03 PM, David Holt wrote: On 19-Mar-09, at 11:31 AM, Chuck Hill wrote: Hi David, On Mar 19, 2009, at 9:45 AM, David Holt wrote: On 7-Mar-09, at 3:58 PM, Kieran Kelleher wrote: I have been using Role Based access control mixed with Privileges (on/off canViewThis, canEditThat, etc.), but I always get the feeling there is better ways to do this security stuff ... anyone care to share their user security strategies in terms of access to pages, parts of pages and objects in WebObjects apps? Hi Kieran, I am implementing a system that assigns a user to a role and then each role is given a specific set of navigation tabs for the pages that they can see. This is all easily done using the ERXNavigationMenu from ProjectWonder. I then customize a given page where necessary (for example read only v.s. editable) for a given role and point to it from that role's navigation menu. This works really well for a small number of roles. You just create as many variations of a given page as you need for the corresponding roles. For how I do it, Roles are used to aggregate privileges and specific privileges grant access to pages, menu items, etc. Man, you always give me new twists to think about! Yeah, I annoy lots of people like that! :-P But you're right, a role would have a hard time specifying privileges, it is much better to come at a Role as an aggregate of them. Would this mean that a person can have multiple roles in the application? That is certainly possible, it really depends on the business domain. Often I find that some users will have a single role and some will have multiple roles. Thing of McDonalds. People working the tills might have the Counter Staff role. People doing the cooking might have the Grill Man role. A Manager might then have the Counter Staff and Grill Man role in addition to their specific Manager role. If they can, can you somehow limit their role to the context that they're working in, in the application? For example, I run a (parabolic - if you know what I mean ;-) web application that publishes three webzines. On two of them I am a writer and on the other the publisher, can I be assigned to a different role depending on which webzine area I have navigated into? I think that you would have to have Magazine specific roles for that e.g. Publisher (Cooking for Techs), Writer (Marine Biology Monthly). You could have template roles that get copied and modified for each Magazine. Where this approach breaks down is when you start to have too many roles and/or you are customizing too many pages to correspond to the roles. I think at that point you'd want to create one page level component and set privileges at the field level (as read only or editable or invisible) depending on the privilege assigned to the role. As always, I think a lot depends on the complexity of your application. And I am not sure what the rule of thumb would be for moving from one way to the other. Do your access control strategies contemplate setting access right down to the attribute level on a page? It would not be fun otherwise, would it? Oh I'm having plenty of fun without digging this far down ;-) Where is Goat Island, again? http://www.niueisland.com/ In other news, the WebObjects Refuge Island has just been engulfed by a giant Tsunami coming from Tonga. It is not known how many survivors there are. Aerial photography has shown some white dots in the palmtrees, but locals from a nearby island have stated that these should be the imported goats that this small religious commune had brought with them some years ago to replace the local goats, of which one of the leaders of the commune, a mister Hilll, had stated that local goats did not produce enough manure to ferment into the specific alcoholic product they needed for their religious ceremonies. It seems Apple has set up a Search and Destroy, ehh, Rescue team to help find the last remnants of some products and people that apparently seem very important to them. Nobody outside Apple knows what this is all about. And nobody inside Apple want to comment: 'Wait till Steve comes back'. Chuck -- 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 ___ 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/johan%40netsense.nl This email sent to jo...@netsense.nl Regards, Johan Henselmans http://www.netsense.nl
Re: Pound symbol Solved...
In my case I ended up recreating the project. I created a new Wonder app project, then I dragged my java classes, my WO components, my web server resources into the new project. And now it works. How weird huh? I got really close to solving it but I was wasting too much time on that. I just hope it doesn't start happening again. :-) On Mar 20, 2009, at 4:33 AM, Gino Pacitti wrote: Well not solves it, but it works, and £ symbols in the POP up menu displayed in the browser are correct When I have more time to debug I might get to the root... Gino On 19 Mar 2009, at 21:42, Ricardo J. Parada wrote: Yep... I would not say that solves it :-) On Mar 19, 2009, at 5:36 PM, Chuck Hill wrote: Mixing unicode (\u00A3) and a Latin encoding suggests that you have just hidden the problem, not solved it. Chuck On Mar 19, 2009, at 2:34 PM, Gino Pacitti wrote: Just a follow up on the pound sign... I used this in my web page HTML : meta http-equiv=Content-Type content=text/html; charset=ISO 8859-1 And used - new NSArray(new Object[] { \u00A3 15,000 property Cover}); Using \u00A3 in the String instead of implicit £ seemed to do the job... Gino On 19 Mar 2009, at 20:35, Ricardo J. Parada wrote: So what about JD-GUI? That's not something I pasted. I'm looking at the compiled code and the characters are wrong. If I do the same for the other app that does work, JD-GUI does display the characters correctly. Anyways, I think this points to a problem in Eclipse I think because it did not compile the string into a UTF-8 constant. On Mar 19, 2009, at 4:10 PM, Chuck Hill wrote: I would not interpret much into those two results. It just means the encoding type is not getting pasted. On Mar 19, 2009, at 1:01 PM, Ricardo J. Parada wrote: Another interesting discovery... In Eclipse, the .java looks like this: public String test = Niño José; and in JD-GUI it looks like this: Picture 13.png then if I simply try to copy that line of code from Eclipse into this email message then it looks as follows when I paste it in: public String test = Ni–o JosŽ; Ok... so we have three different versions of that string and no clue what's going on because Eclipse keeps telling me that the .java file is in UTF-8. But copy and paste into another app (i.e. Mail) doesn't work. On Mar 19, 2009, at 3:33 PM, Lachlan Deck wrote: Does the component of your other app have a woo file with the right encoding set? On 20/03/2009, at 6:16 AM, Ricardo J. Parada wrote: I actually created a new Wonder app with a single component Main.wo. I put this in the Main.java file. public String test = José; then I had my Main.wo display that. I built the embedded version of this app and it DOES display correctly. I'm trying to figure out why it doesn't display correctly in my other app. I'll let you know too if I find out. :-) On Mar 19, 2009, at 3:05 PM, Gino Pacitti wrote: SUre Ricardo Yes I will let you know... will have to go through some encoding documentation and do some homework.. Gino On 19 Mar 2009, at 18:59, Ricardo J. Parada wrote: Let me know if you figure it out because I have not been able to figure out this and I'm using Wonder on a small test project and have specified UTF-8 everywhere I can imagine. In my case however, it only happens when I build an embedded version of the app and run it. Strings coming from String constants in the java file (as seems to be your case) do not display correctly. On the other hand, if the Strings come from the database through EO String properties, or text in the .html or text from binding values in the .wod file, then all characters are displayed correctly. On Mar 19, 2009, at 2:41 PM, Gino Pacitti wrote: Hi Chuck Yes the Component is also set to UTF-8... If I change the encoding to Latin-1 on the HTML page I see the pound symbol but with a L at a 90 degree clockwise before it.. Gino On 19 Mar 2009, at 18:28, Chuck Hill wrote: On Mar 19, 2009, at 9:30 AM, Gino Pacitti wrote: Could anyone point me in the right direction ... I have a WOPOP UP menu item list = NSArray with entries that have £ symbols as part of the contents NSArray list = new NSArray(new Object[] { Some string with a £1 value in it}) The item is bound to a string... The HTML page as encoding set to UTF-8 yet the pop up menu item displays triangles with ? marks where the £ symbols should be What am i doing wrong Thanks in advance Is the encoding of the class file UTF-8 too? Chuck -- 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 - Gino L. Pacitti
Re: Access Control [was: Digging up a Session object from an EOGenericRecord]
On Mar 20, 2009, at 4:49 AM, Johan Henselmans wrote: On 19 mrt 2009, at 23:32, Chuck Hill wrote: Where is Goat Island, again? http://www.niueisland.com/ In other news, the WebObjects Refuge Island has just been engulfed by a giant Tsunami coming from Tonga. It is not known how many survivors there are. Aerial photography has shown some white dots in the palmtrees, but locals from a nearby island have stated that these should be the imported goats that this small religious commune had brought with them some years ago to replace the local goats, of which one of the leaders of the commune, a mister Hilll, had stated that local goats did not produce enough manure to ferment into the specific alcoholic product they needed for their religious ceremonies. It seems Apple has set up a Search and Destroy, ehh, Rescue team to help find the last remnants of some products and people that apparently seem very important to them. Nobody outside Apple knows what this is all about. And nobody inside Apple want to comment: 'Wait till Steve comes back'. ROFL Volcanos and earthquakes - there is no escaping our lot in life! Chuck -- 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 ___ 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: difficulties with cross-model relationship
On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck -- 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 ___ 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
What confuses a component.
I am getting this type of error on occasion and I don't know where to look or what could cause it: The component PlanEdit does not have an instance variable of Title nor is there any place in my code which tries to reference it. This happens rarely, but enough, to annoy me and our customers and would like some hints on where to look. Thanks James com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: com.tos.eo.ProjectPhaseTask 0x1aad578 valueForKey(): lookup of unknown key: 'title'. This class does not have an instance variable of the name title or _title, nor a method of the name title, _title, getTitle, or _getTitle Context Page Name: com.tos.plan.PlanEdit Component Name: com.tos.plan.PlanEdit ___ 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: Pound symbol Solved...
I'm still really a WO451 programmer, so what do I know, but doesn't Xplode allow you to set a default encoding for your text (source) files? One might expect String s = £; to cause the creation of a UTF8 string literal. Suppose your source code default encoding was ISO 8859-1 ... what byte sequence would javac emit? If on the other hand Xplode's default encoding for text files was UTF8, this problem shouldn't crop up -- unless you introduce it with eg an external component editor. Mixing encodings is definitely storing up trouble for the future -- been there, done that, don't want to do it again. Where possible I use pound; or even #163; , but those choices aren't always available -- list values for popups count here. On 20 Mar 2009, at 12:01, Ricardo J. Parada wrote: In my case I ended up recreating the project. I created a new Wonder app project, then I dragged my java classes, my WO components, my web server resources into the new project. And now it works. How weird huh? I got really close to solving it but I was wasting too much time on that. I just hope it doesn't start happening again. :-) --- Regards Patrick OneStep Solutions LLP www.onestep.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: What confuses a component.
On Mar 20, 2009, at 7:47 AM, James Cicenia wrote: I am getting this type of error on occasion and I don't know where to look or what could cause it: The component PlanEdit does not have an instance variable of Title nor is there any place in my code which tries to reference it. This happens rarely, but enough, to annoy me and our customers and would like some hints on where to look. The error message below says it can't find the key title on the object of class ProjectPhaseTask. PlanEdit is the page where this happens. I'd guess that your code is conditionally using objects of different classes. Chuck Thanks James com.webobjects.foundation.NSKeyValueCoding$UnknownKeyException: com.tos.eo.ProjectPhaseTask 0x1aad578 valueForKey(): lookup of unknown key: 'title'. This class does not have an instance variable of the name title or _title, nor a method of the name title, _title, getTitle, or _getTitle Context Page Name: com.tos.plan.PlanEdit Component Name: com.tos.plan.PlanEdit ___ 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/practical_webobjects ___ 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: Pound symbol Solved...
On Mar 20, 2009, at 11:41 AM, Patrick Middleton wrote: I'm still really a WO451 programmer, so what do I know, but doesn't Xplode allow you to set a default encoding for your text (source) files? One might expect String s = £; to cause the creation of a UTF8 string literal. Suppose your source code default encoding was ISO 8859-1 ... what byte sequence would javac emit? What's Xplode? :-) If on the other hand Xplode's default encoding for text files was UTF8, this problem shouldn't crop up -- unless you introduce it with eg an external component editor. Mixing encodings is definitely storing up trouble for the future -- been there, done that, don't want to do it again. Where possible I use pound; or even #163; , but those choices aren't always available -- list values for popups count here. It's so easy to type accents and many other characters on the Mac. I don't like using the character for those things. YMMV. On 20 Mar 2009, at 12:01, Ricardo J. Parada wrote: In my case I ended up recreating the project. I created a new Wonder app project, then I dragged my java classes, my WO components, my web server resources into the new project. And now it works. How weird huh? I got really close to solving it but I was wasting too much time on that. I just hope it doesn't start happening again. :-) ___ 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
AjaxTabbedPanelTab
Hi, Is there a good way to prevent switching from one tab to another if there are pending edits in the editing context? I'm thinking of handling this when the tab tries to set the property bound to the isSelected binding. And then set a message in the request's user info object which gets displayed when the tab's pane is displayed. ___ 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: AjaxTabbedPanelTab
I guess another alternative would be to have each component displayed under each tab to use its own editing context. Then just let the user switch tabs at will. Hmm... I think I like this better. :-) On Mar 20, 2009, at 1:27 PM, Ricardo J. Parada wrote: Hi, Is there a good way to prevent switching from one tab to another if there are pending edits in the editing context? I'm thinking of handling this when the tab tries to set the property bound to the isSelected binding. And then set a message in the request's user info object which gets displayed when the tab's pane is displayed. ___ 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/rparada %40mac.com This email sent to rpar...@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: difficulties with cross-model relationship
On Mar 20, 2009, at 7:31 AM, Chuck Hill wrote: On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck Thanks Chuck. I actually did avoid that happening since I've only added the existing framework to the new framework (and not the reverse). The problem I see on my end is that everything seems to work - relationship add, flattening, etc., but then when I clean everything the older framework does not retain visibility to the types in the newer one. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) T ___ 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: difficulties with cross-model relationship
On Mar 20, 2009, at 11:49 AM, TW wrote: On Mar 20, 2009, at 7:31 AM, Chuck Hill wrote: On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck Thanks Chuck. I actually did avoid that happening since I've only added the existing framework to the new framework (and not the reverse). The problem I see on my end is that everything seems to work - relationship add, flattening, etc., but then when I clean everything the older framework does not retain visibility to the types in the newer one. What you are writing does not seem to be consistent. If you added the existing framework to the new framework then it does not make sense to expect the older framework to retain visibility to the types in the newer one. The new can see the existing, not vice versa. Maybe if you describe the problem in specifics with the real names that may help to clarify things. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) I am really not sure what you are doing and what you are seeing so it is hard to advise you on the best direction to take. Chuck -- 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 ___ 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: difficulties with cross-model relationship
On Mar 20, 2009, at 11:58 AM, Chuck Hill wrote: On Mar 20, 2009, at 11:49 AM, TW wrote: On Mar 20, 2009, at 7:31 AM, Chuck Hill wrote: On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck Thanks Chuck. I actually did avoid that happening since I've only added the existing framework to the new framework (and not the reverse). The problem I see on my end is that everything seems to work - relationship add, flattening, etc., but then when I clean everything the older framework does not retain visibility to the types in the newer one. What you are writing does not seem to be consistent. If you added the existing framework to the new framework then it does not make sense to expect the older framework to retain visibility to the types in the newer one. The new can see the existing, not vice versa. Maybe if you describe the problem in specifics with the real names that may help to clarify things. I think that's exactly right. I think I had an expectation that wasn't reasonable. :-) The real problem is a can of worms. I work for a professional school at UCLA - a campus whose technology is highly decentralized. So, one model represents Employee data (what I was calling 'B') that I pull from central campus daily. Locally, here in our school, we also have an ldap directory, completely separate from anything central campus holds. It is specific to our school only. These data sources are both modeled and have their own frameworks. I have married them programmatically with manual fetches (LDAPPerson - Employee) for login to my most important app - a timesheet app. This all works great but is highly inflexible for new apps - which brings me to where I am. My latest app is for faculty to login only. Believe it or not, the campus Employee data does not have any fields that specify the type of user. But our local ldap directory does. That's problem one. The faculty project is about their Papers. So, I wanted to relate Papers - Employee. A Paper could have multiple faculty contributors and a faculty person could have multiple papers. Also, I wanted a new model (same database) for this faculty project because it doesn't need to know about timesheet stuff. So, I built that model (what I was calling 'A') and I was trying to build a relationship to the Employee data in 'B'. Since the many to many requires the Employee entity to maintain pointers back, it isn't working. But the truth is, for this project I'm only interested in faculty - something Employee doesn't even know about. can of worms. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) I am really not sure what you are doing and what you are seeing so it is hard to advise you on the best direction to take. I understand why the approach I was taking won't work. So, maybe you can vet the one I'm trying today. I was thinking I need to create a framework to relate LDAPPerson and Employee in a single framework and create new model there with GenericUser. This GenericUser would then wrap both their ldap source and their employee data source in a single entity and hold that relationship. It sounds like a lot of overhead but maybe the right thing to do. Then I could subclass that user into FacultyPerson, StaffPerson, StudentPerson, etc. , maybe even in separate frameworks. This sounds like it could put me in a better position to achieve what I want. Tim UCLA GSEIS ___ Do not post admin requests to the list. They will be
Re: Sheep, not goats (was: Re: Access Control [was: Digging up a Session object from an EOGenericRecord])
On Mar 20, 2009, at 1:05 PM, Timo Hoepfner wrote: Where is Goat Island, again? http://www.niueisland.com/ In other news, the WebObjects Refuge Island has just been engulfed by a giant Tsunami coming from Tonga. It is not known how many survivors there are. Aerial photography has shown some white dots in the palmtrees, but locals from a nearby island have stated that these should be the imported goats that this small religious commune had brought with them some years ago to replace the local goats, of which one of the leaders of the commune, a mister Hilll, had stated that local goats did not produce enough manure to ferment into the specific alcoholic product they needed for their religious ceremonies. Update: Turns out, the white dots are actually sheep with LED illumination. Secret video of the practices of the refugees revealed on YouTube. http://www.youtube.com/watch?v=D2FX9rviEhw Now THAT was cool programming! Chuck -- 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 ___ 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: difficulties with cross-model relationship
On Mar 20, 2009, at 12:42 PM, TW wrote: On Mar 20, 2009, at 11:58 AM, Chuck Hill wrote: On Mar 20, 2009, at 11:49 AM, TW wrote: On Mar 20, 2009, at 7:31 AM, Chuck Hill wrote: On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck Thanks Chuck. I actually did avoid that happening since I've only added the existing framework to the new framework (and not the reverse). The problem I see on my end is that everything seems to work - relationship add, flattening, etc., but then when I clean everything the older framework does not retain visibility to the types in the newer one. What you are writing does not seem to be consistent. If you added the existing framework to the new framework then it does not make sense to expect the older framework to retain visibility to the types in the newer one. The new can see the existing, not vice versa. Maybe if you describe the problem in specifics with the real names that may help to clarify things. I think that's exactly right. I think I had an expectation that wasn't reasonable. :-) The real problem is a can of worms. I work for a professional school at UCLA - a campus whose technology is highly decentralized. So, one model represents Employee data (what I was calling 'B') that I pull from central campus daily. Locally, here in our school, we also have an ldap directory, completely separate from anything central campus holds. It is specific to our school only. These data sources are both modeled and have their own frameworks. I have married them programmatically with manual fetches (LDAPPerson - Employee) for login to my most important app - a timesheet app. This all works great but is highly inflexible for new apps - which brings me to where I am. My latest app is for faculty to login only. Believe it or not, the campus Employee data does not have any fields that specify the type of user. But our local ldap directory does. That's problem one. The faculty project is about their Papers. So, I wanted to relate Papers - Employee. A Paper could have multiple faculty contributors and a faculty person could have multiple papers. Also, I wanted a new model (same database) for this faculty project because it doesn't need to know about timesheet stuff. So, I built that model (what I was calling 'A') and I was trying to build a relationship to the Employee data in 'B'. Since the many to many requires the Employee entity to maintain pointers back, it isn't working. But the truth is, for this project I'm only interested in faculty - something Employee doesn't even know about. can of worms. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) I am really not sure what you are doing and what you are seeing so it is hard to advise you on the best direction to take. I understand why the approach I was taking won't work. So, maybe you can vet the one I'm trying today. I was thinking I need to create a framework to relate LDAPPerson and Employee in a single framework and create new model there with GenericUser. This GenericUser would then wrap both their ldap source and their employee data source in a single entity and hold that relationship. It sounds like a lot of overhead but maybe the right thing to do. Then I could subclass that user into FacultyPerson, StaffPerson, StudentPerson, etc. , maybe even in separate frameworks. This sounds like it could put me in a better position to achieve what I want. I think that is exactly the right thing to do: create an object to wrap
Re: Access Control [was: Digging up a Session object from an EOGenericRecord]
Hi! On 2009/03/20, at 11:49, Johan Henselmans wrote: In other news, the WebObjects Refuge Island has just been engulfed by a giant Tsunami coming from Tonga. Hold it hold it hold it! Niue was not chosen by accident! From http://en.wikipedia.org/wiki/Niue : The terrain of Niue consists of steep limestone cliffs along the coast with a central plateau rising to about 60 metres above sea level. We thought of everything, and I mean, everything. No natural disaster shall destroy the WebObjects Refuge Island! Yours Miguel Arroz ... http://www.survs.com 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
WOLips - Can't find Webobjects Frameworks
Hi, I have installed the latest Eclipse/WOLips distribution using Eclipse +WOLips.pkg on a fresh install of Leopard 10.5.6 with XCode and Webobjects options (couldn't make it work at all until I did a complete erase and install!). When I create a new WOApplication, I get the error reported by others that various com.webobjects imports cannot be resolved. I have created the wolips.properties file as suggested, but the problem does not go away. In the Configure Build Path dialog, I click Add Library, then WebObjects Frameworks. The next screen has no frameworks listed. They are there in /System/Library/Frameworks though. Can anyone help? Thanks, Phil Horton. ___ 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: WOLips - Can't find Webobjects Frameworks
On Mar 20, 2009, at 3:18 PM, Phil Horton wrote: Hi, I have installed the latest Eclipse/WOLips distribution using Eclipse+WOLips.pkg on a fresh install of Leopard 10.5.6 with XCode and Webobjects options (couldn't make it work at all until I did a complete erase and install!). When I create a new WOApplication, I get the error reported by others that various com.webobjects imports cannot be resolved. I have created the wolips.properties file as suggested, but the problem does not go away. In the Configure Build Path dialog, I click Add Library, then WebObjects Frameworks. The next screen has no frameworks listed. They are there in /System/Library/Frameworks though. Can anyone help? Thanks, Phil Horton. Barring a new bug, I'd guess a mistake in the content or an error in the permissions for ~/Library/Application\ Support/WOLips/wolips.properties Chuck -- 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 ___ 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: difficulties with cross-model relationship
On Mar 20, 2009, at 1:56 PM, Chuck Hill wrote: On Mar 20, 2009, at 12:42 PM, TW wrote: On Mar 20, 2009, at 11:58 AM, Chuck Hill wrote: On Mar 20, 2009, at 11:49 AM, TW wrote: On Mar 20, 2009, at 7:31 AM, Chuck Hill wrote: On Mar 19, 2009, at 11:38 PM, TW wrote: All: I have an entity called Paper in a new model A that I would like to relate to an entity Employee in an established model B. Each of them are in their own framework project but both models use the same database. I was hoping to make this a many to many and flatten it. I've tried many things tonight to get this to work but apparently I'm doing all the wrong things. Apple's documentation seems to indicate that I should be able to resolve type references to any models included in the model group. I've added B eomodel to the model group section in my EOGenerate file. I've tried adding B.framework the build path of A.framework. This seems to do the right things and add the join table, etc., but then model B can't resolve type references to the entity in model A. I'm assuming I'm just really confused about how this should work but I've reached my limit for banging my head against it. I'd be really grateful if anyone doing something similar could share how they may have gotten this working. It sounds like you have a circular dependancy: Framework A depends on Framework B _and_ Framework B depends on Framework A. That just won't work in Java. I think you can only do this if the relationships are only in one direction or if both models are in the same project. Chuck Thanks Chuck. I actually did avoid that happening since I've only added the existing framework to the new framework (and not the reverse). The problem I see on my end is that everything seems to work - relationship add, flattening, etc., but then when I clean everything the older framework does not retain visibility to the types in the newer one. What you are writing does not seem to be consistent. If you added the existing framework to the new framework then it does not make sense to expect the older framework to retain visibility to the types in the newer one. The new can see the existing, not vice versa. Maybe if you describe the problem in specifics with the real names that may help to clarify things. I think that's exactly right. I think I had an expectation that wasn't reasonable. :-) The real problem is a can of worms. I work for a professional school at UCLA - a campus whose technology is highly decentralized. So, one model represents Employee data (what I was calling 'B') that I pull from central campus daily. Locally, here in our school, we also have an ldap directory, completely separate from anything central campus holds. It is specific to our school only. These data sources are both modeled and have their own frameworks. I have married them programmatically with manual fetches (LDAPPerson - Employee) for login to my most important app - a timesheet app. This all works great but is highly inflexible for new apps - which brings me to where I am. My latest app is for faculty to login only. Believe it or not, the campus Employee data does not have any fields that specify the type of user. But our local ldap directory does. That's problem one. The faculty project is about their Papers. So, I wanted to relate Papers - Employee. A Paper could have multiple faculty contributors and a faculty person could have multiple papers. Also, I wanted a new model (same database) for this faculty project because it doesn't need to know about timesheet stuff. So, I built that model (what I was calling 'A') and I was trying to build a relationship to the Employee data in 'B'. Since the many to many requires the Employee entity to maintain pointers back, it isn't working. But the truth is, for this project I'm only interested in faculty - something Employee doesn't even know about. can of worms. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) I am really not sure what you are doing and what you are seeing so it is hard to advise you on the best direction to take. I understand why the approach I was taking won't work. So, maybe you can vet the one I'm trying today. I was thinking I need to create a framework to relate LDAPPerson and Employee in a single framework and create new model there with GenericUser. This GenericUser would then wrap both their ldap source and their employee data source in a single entity and hold that relationship. It sounds like a lot of overhead but maybe the right thing to do. Then I could subclass that user into FacultyPerson, StaffPerson, StudentPerson, etc. , maybe even in separate frameworks. This sounds like it could put me in a better position to achieve what I want. I think that is exactly
Re: difficulties with cross-model relationship
On Mar 20, 2009, at 3:59 PM, TW wrote: What you are writing does not seem to be consistent. If you added the existing framework to the new framework then it does not make sense to expect the older framework to retain visibility to the types in the newer one. The new can see the existing, not vice versa. Maybe if you describe the problem in specifics with the real names that may help to clarify things. I think that's exactly right. I think I had an expectation that wasn't reasonable. :-) The real problem is a can of worms. I work for a professional school at UCLA - a campus whose technology is highly decentralized. So, one model represents Employee data (what I was calling 'B') that I pull from central campus daily. Locally, here in our school, we also have an ldap directory, completely separate from anything central campus holds. It is specific to our school only. These data sources are both modeled and have their own frameworks. I have married them programmatically with manual fetches (LDAPPerson - Employee) for login to my most important app - a timesheet app. This all works great but is highly inflexible for new apps - which brings me to where I am. My latest app is for faculty to login only. Believe it or not, the campus Employee data does not have any fields that specify the type of user. But our local ldap directory does. That's problem one. The faculty project is about their Papers. So, I wanted to relate Papers - Employee. A Paper could have multiple faculty contributors and a faculty person could have multiple papers. Also, I wanted a new model (same database) for this faculty project because it doesn't need to know about timesheet stuff. So, I built that model (what I was calling 'A') and I was trying to build a relationship to the Employee data in 'B'. Since the many to many requires the Employee entity to maintain pointers back, it isn't working. But the truth is, for this project I'm only interested in faculty - something Employee doesn't even know about. can of worms. I think I have a problem with approach. I think the best approach may be to sub-class my user types in a third framework? I've been putting this off. :-) I am really not sure what you are doing and what you are seeing so it is hard to advise you on the best direction to take. I understand why the approach I was taking won't work. So, maybe you can vet the one I'm trying today. I was thinking I need to create a framework to relate LDAPPerson and Employee in a single framework and create new model there with GenericUser. This GenericUser would then wrap both their ldap source and their employee data source in a single entity and hold that relationship. It sounds like a lot of overhead but maybe the right thing to do. Then I could subclass that user into FacultyPerson, StaffPerson, StudentPerson, etc. , maybe even in separate frameworks. This sounds like it could put me in a better position to achieve what I want. I think that is exactly the right thing to do: create an object to wrap and hide the complexity of the ldap source and the employee data source. Chuck Thanks Chuck. I've made some progress on this today. One place I'm apparently getting stuck is putting valid qualifiers in my model for my inheritance structure. I've got a new abstract entity LDAPEmployee which inherits from InetOrgPerson (from my ldap schema). I added a relationship employee between this entity and my Employee entity in my employee source using the the common employeeNumber. So far so good. However, I want to put a qualifier on LDAPEmployee that requires an Employee entity to exist. My hope is to be able to ask for LDAPEmployee objects and only get ldapusers where there's also a related Employee. EOF does not support that. So, I created a restricting qualifier in Entity Modeler that looks like: employee!=null That qualifier can only refer to attributes of the object (cols in the table). I get an error that there's a failure to parse my qualifier. Is this because the syntax is bad or because I can't create a qualifier like this? I've looked everywhere for definitive information about what is valid for these qualifiers and there's very little info out there. Can't do it like that. You could add a method employees() to LDAPEmployee that did a qualified fetch perhaps. Chuck -- 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 ___ 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:
Re: [Wonder-disc] blogs?
See, the problem is that the person who has been doing most of the work on those projects lately is also the person who wrote most of those blogs. Rumours has it that he also has a job. :-) are you saying this person actually has to do a real job for a living ? That is criminal. His employers should just pay him for making all of our lives a million times easier than they would be without him churning out all of this goodness. Who the hell do they think they are :-) Simon ___ 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: [Wonder-disc] blogs?
On Mar 20, 2009, at 5:21 PM, Simon McLean wrote: See, the problem is that the person who has been doing most of the work on those projects lately is also the person who wrote most of those blogs. Rumours has it that he also has a job. :-) are you saying this person actually has to do a real job for a living ? That is criminal. His employers should just pay him for making all of our lives a million times easier than they would be without him churning out all of this goodness. Who the hell do they think they are :-) The world is full of evil! -- 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 ___ 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