Re: [ANN] Wonder 4.0 Release

2007-07-12 Thread Miguel Arroz
Hi! Nice work, guys! Yours Miguel Arroz Miguel Arroz http://www.terminalapp.net http://www.ipragma.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Uns

Re: D2W does not do addObjectToBothSidesOfRelationshipWithKey

2007-07-12 Thread Robert Walker
Then it is not a true 1:1 as one a may have many b’s and one b may have many a’s. Thats what Robert meant by not being a true 1:1. If you join a PK to an FK you always have a 1:n Exactly. Since this is not one of the two relationships is not an inverse of the other then addObjectToBothSides

Re: magic way to refactor?

2007-07-12 Thread Simon McLean
I drag refactor all the time too, but i have seen this exception. I'm guessing you are moving a whole bunch of classes at once. IIRC, try moving them one by one and you'll probably find one of the classes is causing the problem and you'll probably get a more helpful exception message. Sim

Re: [ANN] Wonder 4.0 Release

2007-07-12 Thread David LeBer
On 12-Jul-07, at 5:08 PM, Anjo Krank wrote: All, after over a year in the making, it is my pleasure to present a new release of Project Wonder, the largest open-source project for WebObjects. You can grab your copy at the SourceForge download page: CONGRATULATIONS! I've said this before,

Re: D2W does not do addObjectToBothSidesOfRelationshipWithKey

2007-07-12 Thread Alexander Spohr
Am 12.07.2007 um 22:56 schrieb Johan Henselmans: On 12-jul-2007, at 21:58, Robert Walker wrote: Johan, Is this truly a one-to-one relationship as modeled? I mean are the tables joined PK <> PK? Or is this modeled as a one-to- many with the many-side limited to one related object in

[ANN] Wonder 4.0 Release

2007-07-12 Thread Anjo Krank
All, after over a year in the making, it is my pleasure to present a new release of Project Wonder, the largest open-source project for WebObjects. You can grab your copy at the SourceForge download page: http://sourceforge.net/project/showfiles.php?group_id=45176 We got great contributi

Re: D2W does not do addObjectToBothSidesOfRelationshipWithKey

2007-07-12 Thread Johan Henselmans
On 12-jul-2007, at 21:58, Robert Walker wrote: Johan, Is this truly a one-to-one relationship as modeled? I mean are the tables joined PK <> PK? Or is this modeled as a one-to-many with the many-side limited to one related object in the array? it is like: a-pk<--b-fk a-fk --> b-

Re: magic way to refactor?

2007-07-12 Thread Mike Schrag
I drag refactor all the time, so I can vouch for it ... ms On Jul 12, 2007, at 4:51 PM, Kieran Kelleher wrote: No, however I always use the Refactor/Move context menu ... habit I guess. Solution: IF you use Subversion (you should for your sanity even if you are the whole team by yourself

Re: magic way to refactor?

2007-07-12 Thread Kieran Kelleher
No, however I always use the Refactor/Move context menu ... habit I guess. Solution: IF you use Subversion (you should for your sanity even if you are the whole team by yourself!) you could commit before major nerve-racking bulk refactorings and use Subversion to revert to the last revis

Re: magic way to refactor?

2007-07-12 Thread Chuck Hill
Hi Asa, On Jul 12, 2007, at 1:01 PM, Asa Hardcastle wrote: I am in the process of moving lots of code from the default package into specific packages - using eclipse/wolips. Every now and then it seems to work, but for the most part, when I drag files I get an exception with the option t

magic way to refactor?

2007-07-12 Thread Asa Hardcastle
Hi all, I am in the process of moving lots of code from the default package into specific packages - using eclipse/wolips. Every now and then it seems to work, but for the most part, when I drag files I get an exception with the option to Undo or abort. The exception is a NullPointerExc

Re: D2W does not do addObjectToBothSidesOfRelationshipWithKey

2007-07-12 Thread Robert Walker
Johan, Is this truly a one-to-one relationship as modeled? I mean are the tables joined PK <> PK? Or is this modeled as a one-to-many with the many-side limited to one related object in the array? If this is a true PK to PK one-to-one relationship, which way have you set "Propagates

D2W does not do addObjectToBothSidesOfRelationshipWithKey

2007-07-12 Thread Johan Henselmans
I am updating a old D2W app to the latest and greatest Wonder/Eclipse combo, and after adding some records to a database, I noticed that the table on the other side of the relationship did not get an update in it's foreign_id key field (it's a one-to-one relationship with with relationships

Re: [OT] Product Recommendations

2007-07-12 Thread Kieran Kelleher
Plugins I really find invaluable are on this page I just created . feel free to add your favorites: http://wiki.objectstyle.org/confluence/display/WOL/Useful+Eclipse +Plugins On Jul 12, 2007, at 11:23 AM, Sam Barnum wrote: Thanks Kieran. To change the topic, does anyone have any to

Re: EOAttribute.validateValue question

2007-07-12 Thread Chuck Hill
On Jul 12, 2007, at 5:01 AM, Francis Labrie wrote: Chuck Hill wrote: What I did was to create a NullFormatter so that I did not have to worry about optionality: import java.text.*; /** * A null object formatter that just returns its input. Useful for when the API needs a formatter *

Re: [OT] Product Recommendations

2007-07-12 Thread Chuck Hill
On Jul 12, 2007, at 8:23 AM, Sam Barnum wrote: Thanks Kieran. To change the topic, does anyone have any tools they really like? I have become very fond of this: http://www.leevalley.com/wood/ page.aspx?c=1&p=49708&cat=1,41182,52515 Huh? What? Oh. not that kind of tool. I know I learne

Re: Localized EO

2007-07-12 Thread Johann Werner
Thanks Daniele and Jean-François, seems that I have to rethink part of my approach though I will continue to use both techniques (string file and db based) as the one is simpler for constant strings (perhaps also better performance) and the latter one appropriate for user changeable (and in

Re: Localized EO

2007-07-12 Thread Mike Schrag
Wonder supports localized attributes already ... repost this on the Wonder list and I'm sure Anjo can tell you how to do it. ms On Jul 12, 2007, at 11:08 AM, Johann Werner wrote: Hi all, sorry to bother the list but I am stuck. in short: I want to make some EOs behave localized. long sto

RE: AjaxUpdateContainer encoding issue

2007-07-12 Thread Peter Pritchard
I had this in my properties file: er.extensions.ERXApplication.DefaultMessageEncoding=UTF8 (which didn't work ... ) (I was operating under the assumption that utf8 utf-8 UTF8 and UTF-8 are all equivalent though) Seems to work fine now ... Thank you very much! - Peter Pritchard [EMAIL PROT

Re: Localized EO

2007-07-12 Thread Jean-François Veillette
We have solved this problem by enhancing kvc at the component level. Let's say you have those attributes : name_FR, name_EN, name_DU, etc. which holds localized values for the name attribute. what we do is we alter the keypath that ask for 'name'. instead of wostring: value= myEO.name; and let myE

Re: [OT] Product Recommendations

2007-07-12 Thread Simon McLean
I think this is a new page for the wiki. Personally I am always interested in what other Eclipse plugins people are using to make their development easier / faster. Simon On 12 Jul 2007, at 16:23, Sam Barnum wrote: Thanks Kieran. To change the topic, does anyone have any tools they really

Re: AjaxUpdateContainer encoding issue

2007-07-12 Thread Mike Schrag
This post should be on the wonder list, but the correct fix for using UTF-8 (and there may be a properties entry for this also, but I didn't notice it) is in your application constructor (assuming you extend ERXApplication), call: installDefaultEncoding("UTF-8"); This sets all of the prope

Re: Localized EO

2007-07-12 Thread Daniele Corti
Hi Johann, look, I think you are make it too complicated... It would be easy if you create some localizable files (e.g. Italian.lproj/Localizable.strings, English.lproj/Localizable.strings, etc) than make for them the same key: //English Localizable.strings { haveANiceDayPrompt = "Hava a nice d

Re: EOAndQualifier order

2007-07-12 Thread Guido Neitzer
On 12.07.2007, at 04:19, Miguel Arroz wrote: PostgreSQL manual, chapter 11, the section about multi-column indexes. I realized, after further testing, that the planner tries to re-arrange the order. But I think there are situations where the planner may choose one or another column becaus

Re: EOAndQualifier order

2007-07-12 Thread Guido Neitzer
On 11.07.2007, at 18:08, Q wrote: Where exactly did you read this? Order of the conditional expressions shouldn't make any difference to the query planner. AFAIK it might if you have multicolumn indexes, but as far as I remember, that was solved in one of the 8.x versions. cug __

Re: EOAndQualifier order

2007-07-12 Thread Guido Neitzer
On 11.07.2007, at 15:29, Miguel Arroz wrote: Is this normal? Is the order random? What's happening here? I'm asking this, because from what I understand form the PostgreSQL docs, the order of the stuff in ANDs (and ORs) may have cause a really big difference in performance when indexes (a

AjaxUpdateContainer encoding issue

2007-07-12 Thread Peter Pritchard
I apologize in advance if this has been discussed already ... I have had an issue where umlauts and the such are displayed properly when first displayed, and then replaced by a '?' after the AjaxUpdateContainer refreshes the div ... When I decided it was time to figure out that issue, I tra

[OT] Product Recommendations

2007-07-12 Thread Sam Barnum
Thanks Kieran. To change the topic, does anyone have any tools they really like? I know I learned about some really cool products on this list. I'm thinking of FireBug and Selenium, which Chuck mentioned in passing. FireBug has become indispensable. Maybe this could be another survey,

Localized EO

2007-07-12 Thread Johann Werner
Hi all, sorry to bother the list but I am stuck. in short: I want to make some EOs behave localized. long story: In my project I have some fixed lists as e.g. salutations that are saved in the db. There I want to use the approach of the localizable.strings lookup (I am using ERXLocalizer f

Re: EOAndQualifier order

2007-07-12 Thread Q
On 12/07/2007, at 8:19 PM, Miguel Arroz wrote: Hi! PostgreSQL manual, chapter 11, the section about multi-column indexes. I realized, after further testing, that the planner tries to re-arrange the order. But I think there are situations where the planner may choose one or another colu

Re: EOAttribute.validateValue question

2007-07-12 Thread Francis Labrie
Hi, Chuck Hill wrote: What I did was to create a NullFormatter so that I did not have to worry about optionality: import java.text.*; /** * A null object formatter that just returns its input. Useful for when the API needs a formatter * but there is no formatting to do. */ Funny, I

Re: EOAndQualifier order

2007-07-12 Thread Q
On 12/07/2007, at 9:58 PM, Ken Anderson wrote: Actually, Sybase will accept the query. It allows group by on fields that are not in the select. Grouping by fields not used in the select clause is not strictly legal SQL either (I don't think), and I can't think of a case you would actual

Re: EOAttribute.validateValue question

2007-07-12 Thread Kieran Kelleher
Yes, right. TODO added to use opencsv for writing CSV files Thanks, kieran On Jul 12, 2007, at 8:19 AM, Mike Schrag wrote: On Jul 12, 2007, at 8:15 AM, Kieran Kelleher wrote: For writing CSV files, I have used ostermiller utils CSV http://ostermiller.org/utils/CSV.html Just a warning --

Re: EOAttribute.validateValue question

2007-07-12 Thread Mike Schrag
On Jul 12, 2007, at 8:15 AM, Kieran Kelleher wrote: For writing CSV files, I have used ostermiller utils CSV http://ostermiller.org/utils/CSV.html Just a warning -- ostermiller is GPL ... I had problems with that in the past. opencsv might be a better choice for a commercial-friendly licens

Re: EOAttribute.validateValue question

2007-07-12 Thread Kieran Kelleher
Actually I have been using org.apache.commons.lang.text.StrTokenizer for parsing and it works beautifully with both "Excel CSV" and "Normal CSV" formats without having to differentiate. Lightweight and easy and convenient since I already have org.apache.commons.lang in my Foundation framewo

Re: Model Cloning

2007-07-12 Thread Susanne Schneider
Hi Andrew, no, we copying the models as objects in jave, like: 1) create new model B 2) go through all entities from model A 3) for each entity A1 create new entity B1 4) copy all properties from A1 to B1 (this is a bit tricky for relations) 5) add entity B1 to model B 6) add model B to default

Re: EOAndQualifier order

2007-07-12 Thread Ken Anderson
Actually, Sybase will accept the query. It allows group by on fields that are not in the select. On Jul 12, 2007, at 2:55 AM, Q wrote: This query is invalid, your database should reject it. It should be: SELECT departmentId FROM foo WHERE lastName='Smith' AND firstName='Bob' GROUP BY dep

Re: Model Cloning

2007-07-12 Thread Andrew Lindesay
Hallo Susanne; This is where a one-way replica of a database is used for batch processing. I think the problem I was having was that the "EntityLoadedNotification"-s were flying around and possibly making the wrong associations with models. If I fully load the models first then this see

Re: EOAndQualifier order

2007-07-12 Thread Miguel Arroz
Hi! PostgreSQL manual, chapter 11, the section about multi-column indexes. I realized, after further testing, that the planner tries to re-arrange the order. But I think there are situations where the planner may choose one or another column because there's no "optimum" solution, and th

Re: Model Cloning

2007-07-12 Thread Susanne Schneider
Hi Andrew, we are hassling with models here a lot, but with a mix of the procedure you discribed and the one of Chuck. Instead of reloading model B we are copying model A to a new model B with renaming the entities while copying. For normal work both models are put into the default model grou