Eclips, .string files, and default encoding

2007-01-23 Thread François Reboursier
reamWriter out = new OutputStreamWriter(new ByteArrayOutputStream()); System.out.println("DEFAULT ENCODING: "+ out.getEncoding()); I see that my default encoding is 'MacRoman'. Is there a way to change this via a javac setting in Eclipse (and how ? ), or in code ? Re

Re: INFO FOR CHOSING ENCODING

2006-09-04 Thread François Reboursier
On Sep 4, 2006, at 16:19, Amedeo Mantica wrote: Hi, I need to build a database that should record data in both European and Chinese languages. What encoding should I choose? I have both OpenBase or MySQL I'm using UTF-8, as I record data in French. But after some bad exper

[SOLVED] Switching from XCode to WOLips: ressources headaches

2006-08-17 Thread François Reboursier
On Aug 16, 2006, at 17:31, François Reboursier wrote: Now on to my other problem (and the last one I hope ! ): when I run the app (in Eclipse or from the command-line) I get the following: : Exception in performActionNamed() on the action "default" with t

Re: Switching from XCode to WOLips: ressources headaches

2006-08-16 Thread François Reboursier
On Aug 16, 2006, at 17:42, Mike Schrag wrote: What exactly is the procedure you're using to run the app from Eclipse or the commandline? If you're running from commandline, you can ONLY do this after doing an ant build and running the app that is created in the dist folder. If you're try

Re: Switching from XCode to WOLips: ressources headaches

2006-08-16 Thread François Reboursier
On Aug 16, 2006, at 14:55, Timo Hoepfner wrote: - Only the 'index.plist' file of my EOModel is copied to the build ressources. I could manually add the others .plist and .fspec files, but I don't want to do this manually every time I add an entity. Is there a way to automate this ? Probab

Switching from XCode to WOLips: ressources headaches

2006-08-16 Thread François Reboursier
Hi, Following the recent buzz, I've decided to bite the bullet and migrate my project from XCode to WOLips (the project is fairly large; 500+ java files, many ressources, external frameworks and jars, etc- etc) I've run into the following issues: - to add a ressource to the buil

PostgreSQL & duplicate primary key error

2006-08-02 Thread François Reboursier
Hi list, I'm running accross a strange problem: when inserting multiple objects of the same class to the DB, I get the following exception: "SQL State:23505 -- error code: 0 -- msg: ERROR: duplicate key violates unique constraint "moduleinmodule_pk"" When inserting one object at tim

Re: Catch "Internal Server Error"

2006-05-18 Thread François Reboursier
On May 18, 2006, at 11:12, [EMAIL PROTECTED] wrote: Hello François Is there any way to catch this do display a "better" error page, or to customise this page ? http://homepage.mac.com/andrewlindesay/le/articles/ wo_errorreporting_article.pdf I know this, and it works great to c

Catch "Internal Server Error"

2006-05-18 Thread François Reboursier
Hi list, As all developers knows, in a perfect world, an app wouldn't crash, everything would go smooth, but hey, s**t happens. So sometimes, I get the dreaded and ugly "An Internal Server Error Has Occurred." page (most of the time I forget to update the DB to match my EOModel, ea

Re: Automatic operation at application statup - once for each instance [SOLVED]

2006-03-23 Thread François Reboursier
Morris wrote:I think it should be: -DmainInstance=TRUERegards,MarkOn Mar 23, 2006, at 3:10 AM, François Reboursier wrote: This seems very seductive, but when I configure my instance and try to retreive the property ('String isMainInstance = System.getProperty("mainInstance");' )

Re: Automatic operation at application statup - once for each instance

2006-03-23 Thread François Reboursier
JavaMonitor for one instance but not the others. (-mainInstance TRUE) Retrieve this property within your code with System.getProperty ("mainInstance") On Mar 22, 2006, at 8:32 AM, François Reboursier wrote: Hi list, I perform some maintenance operations at applica

Automatic operation at application statup - once for each instance

2006-03-22 Thread François Reboursier
Hi list, I perform some maintenance operations at application startup by catching the WOApplication.ApplicationDidFinishLaunchingNotification It works fine in testing, but in deployment mode the maintenance code is called many times (once for each instance): this is perfectly logic

WODisplayGroup & RawRows

2006-03-08 Thread François Reboursier
Hi folks, Here is a an optimisation-related question. My app has a user-configurable search page, which displays results in a WODisplayGroup (10 results at a time). Depending on the search, up to 500 complex objects can be fetched, thus the page is rather slow to load, so