Antw: WOLips with WebObjects 5.2

2010-10-25 Thread Andri vonAllmen
I'm using quite the same environment as Stefan without any problems. If you still want to use WOBuilder (albeit it's obsolete), some tweaks on the default project structure in eclipse have to be made (it has to be as flat as possible - Java Files and Components in the same directory). I'm even

XMLHttpRequest - call direct action using relative URL

2010-09-23 Thread Andri vonAllmen
Hi List, I'd like to call a direct action method using XMLHttpReqest in a JavaScript. The snippet below shows how the request is made: var xmlHttp; xmlHttp=new XMLHttpRequest(); xmlHttp.open(GET, /cgi-bin/WebObjects/[APP_NAME].woa/wa/[CLASS_NAME]/[METHOD_NAME]?wosid=[SID], true);

Antw: Re: Prevent Connection reset by peer message to be shown in log file

2010-07-14 Thread Andri vonAllmen
Chuck Hill ch...@global-village.net schrieb am Dienstag, 13. Juli 2010 um 16:17 in Nachricht 9babf87a-e80c-4fe7-ad88-a62528b6a...@global-village.net: On Jul 13, 2010, at 1:59 AM, Andri vonAllmen wrote: Hi List, some users like to double-click everything (or they have some kinetic tremor

Antw: Re: Prevent Connection reset by peer message to be shown in log file

2010-07-14 Thread Andri vonAllmen
this is it. Even if I haven't deserved one, I'll go for a ice cream now. Sorry for the waste of time. Andri vonAllmen andri.vonall...@cedes.com schrieb am Mittwoch, 14. Juli 2010 um 11:04 in Nachricht 4c3d99d00277a...@srv-brisi.cag.cedes.com: Chuck Hill ch...@global-village.net schrieb

Prevent Connection reset by peer message to be shown in log file

2010-07-13 Thread Andri vonAllmen
Hi List, some users like to double-click everything (or they have some kinetic tremor or whatever). This produces a lot of messages like the one shown below: [2010-07-13 10:44:19 CEST] WorkerThread6 WOWorkerThread id=6 socket=Socket[addr=/10.0.10.82,port=3014,localport=2001] Exception while

Antw: Retrieving an EO from a serialized Propertylist in database tabletextfield

2010-02-24 Thread Andri vonAllmen
Since the entity name and the primary key are known on the target side, EOUtilities.faultWithPrimaryKeyValue(yourEditingContext, yourEntity, yourPrimaryKey) will do the job. PS (again): But since I can't get no sleep because of the olympic games, I may have entirely missunderstood the actual

Re: Antw: WOWorkerThread

2009-10-15 Thread Andri vonAllmen
Threads with state = BLOCKED are indicating that they have been suspended (Object.wait). It's not a deadlock or something. If required, they will be resumed and suspended again as soon as their work is done. But they will not be terminated until the application is going to terminate. You can use

[SOLVED]Antw: Re: Problem with pages saved in a variable

2009-10-14 Thread Andri vonAllmen
a look on API Session : restorePageForConextID, savePage, savePageInPermanentCache. You can start to override this API and just log, to understand how WebObjects works with pages and contextIDs. HTH, Stephane Le 13 oct. 09 à 10:29, Andri vonAllmen a écrit : Dear

Antw: WOWorkerThread

2009-10-14 Thread Andri vonAllmen
Hi Kristof, there is no such mechanism as far as I know. Instead of terminating the threads that are idling, they are suspended, in order to be resumed if required. They could be self-terminating, but creating a new thread is quite resource intensive and it is better to reuse existing threads

Re: [SOLVED]Antw: Re: Problem with pages saved in a variable

2009-10-14 Thread Andri vonAllmen
schrieb am Mittwoch, 14. Oktober 2009 um 15:18 in Nachricht 2a345bc9-7581-4c6c-82ab-89e761ee3...@mdimension.com: Can you explain this more in terms of the end result you're trying to achieve rather the approach you're trying at the moment? On Oct 14, 2009, at 4:03 AM, Andri vonAllmen wrote

Problem with pages saved in a variable

2009-10-13 Thread Andri vonAllmen
Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine if the requested page does already exist, if true the existing page is returned, else a new one is generated

Antw: Re: Problem with pages saved in a variable

2009-10-13 Thread Andri vonAllmen
this? It seems like a rather bad idea. Chuck On Oct 13, 2009, at 1:29 AM, Andri vonAllmen wrote: Dear List, in an Applications Session, a NSMutableDictionary object is used for caching pages. Everytime the pageWithName method is called, the dictionary is queried in order to determine

Antw: How to achieve a fuzzy match searcher

2009-10-09 Thread Andri vonAllmen
Hi Gustavo, approximate string mathcing is the keyword. The most performant method is (most likely) achieved by using the Levenstein-Algorithm (you'll find many examples for this one, e.g.: http://www.merriampark.com/ld.htm#JAVA). Another one would be the Boyer-Moore Algorithm (in one of its

Antw: Re: Help with optional to-one relationship

2009-08-28 Thread Andri vonAllmen
Hi Amiel, As already mentioned, the database has to make the assuption, that there may be 0..n 'State' records for a 'Seo' record. Hence, you have to handle the relationship like a to-many relationship. In other words: First, all 'State' records for a given 'Seo' record have to be fetched,

SOLVED / Antw: WOFileUpload - set filter for file type / select a directory(instead of a file)

2009-08-11 Thread Andri vonAllmen
/web-layout-43/browse-button-in-html-for-directory-selection-alone-not-file-36330.html Andri vonAllmen andri.vonall...@cedes.com Dienstag, 11. August 2009 07:08 Hi List, I'm (still) working with WebObjects 5.2 and can't figure out how to do the things mentioned below: First, a file type filter

WOFileUpload - set filter for file type / select a directory (instead of a file)

2009-08-10 Thread Andri vonAllmen
Hi List, I'm (still) working with WebObjects 5.2 and can't figure out how to do the things mentioned below: First, a file type filter for th WOFileUpload component is required. I tried to add a accept property to its bindings with text/html (for example) as value, but that has no effect. The

Antw: New job position in Switzerland

2009-07-16 Thread Andri vonAllmen
Hi, Because you mentioned this new job position, here is another one (also in Switzerland): http://www.espros-photonics.com/Versions/Europe/English/jobs_1.html#Software-Engineer for Business Applications Pascal Robert prob...@macti.ca Donnerstag, 16. Juli 2009 03:10 Hello, I just posted,

Re: Antw: Re: Migrating Data from a temporary table into anothereditingcontext

2009-05-06 Thread Andri vonAllmen
Hill ch...@global-village.net Dienstag, 5. Mai 2009 17:12 On May 5, 2009, at 5:30 AM, Andri vonAllmen wrote: There is something going on that you are not telling us. I'm also assuming, that my problem is something for the school of bleeding obvious... However, by way of trial, I changed

Re: Antw: Re: Migrating Data from a temporary table into anothereditingcontext

2009-05-06 Thread Andri vonAllmen
Chuck Hill ch...@global-village.net schrieb am Mittwoch, 6. Mai 2009 um 18:51 in Nachricht 36e65792-ee54-44bc-9df9-d1676603b...@global-village.net: On May 5, 2009, at 11:33 PM, Andri vonAllmen wrote: Hi Chuck, thanks again for your efforts. 1. The data are inserted into the temporary

Re: Antw: Re: Migrating Data from a temporary table into anothereditingcontext

2009-05-05 Thread Andri vonAllmen
of attributes and relationships) ... That isn't nice, since every object is stored twice (for a short time only indeed) in the database, but it works. Andri Chuck Hill ch...@global-village.net Freitag, 1. Mai 2009 16:50 On May 1, 2009, at 5:07 AM, Andri vonAllmen wrote: Hi Chuck, thanks for your

Antw: Re: Migrating Data from a temporary table into another editingcontext

2009-05-04 Thread Andri vonAllmen
...@global-village.net Mittwoch, 29. April 2009 19:09 Hi Andri, On Apr 29, 2009, at 5:19 AM, Andri vonAllmen wrote: 'loha folks, short: How do i migrate data, fetched from a temporary table, from one editing context into another? Details below... The situation is as follows: First, data

Migrating Data from a temporary table into another editing context

2009-04-29 Thread Andri vonAllmen
'loha folks, short: How do i migrate data, fetched from a temporary table, from one editing context into another? Details below... The situation is as follows: First, data are inserted into a temporary table (Oracle 8i) by using a stored procedure. Then, in the same procedure, these data

Antw: Re: Migrating Data from a temporary table into another editing context

2009-04-29 Thread Andri vonAllmen
Hi Gordon, thanks for your response. Unfortunately the local instances of the objects are null too. Regards Andri Gordon Belray gordon.bel...@utoronto.ca Mittwoch, 29. April 2009 15:46 Hi Andri, try using EOEnterpriseObject result =

Antw: Re: Prevent 'NSUtilities.rawRowsForSQL()' from making changesin the database

2009-03-18 Thread Andri vonAllmen
with) from untrusted input and executing it using EOUtilities.rawRowsForSQL, then *you* are Bleeding Obviously creating a security vulnerability in *your* application ;-) What exactly are you trying to accomplish? On Mar 17, 2009, at 10:17 AM, Andri vonAllmen wrote: 'loha Folks, I'm searching

Prevent 'NSUtilities.rawRowsForSQL()' from making changes in the database

2009-03-17 Thread Andri vonAllmen
'loha Folks, I'm searching for a possibility to prevent the 'NSUtilities.rawRowsForSQL()' method from making changes in the database. For me, it seems to be the wrong way to search for SQL Statements (like ALTER, CREATE, DROP, INSERT, UPDATE, etc.) that may change something before executing the

Redirecting to a WOLongResponsePage

2008-11-25 Thread Andri vonAllmen
Hi folks, when redirecting to a WOLongResponsePage in 'appendToResponse' by using the WOResponses 'setContend' method (as shown below), the WOLongResponsePage does not work properly. The page is shown indeed and 'performAction' is called once (by the WOLongResponse mechanism), but the page does

NSTimeZone returns other DST information than java.util.TimeZone

2008-11-06 Thread Andri vonAllmen
Hi Folks, because the Timezone information was obsolete, i recently updated the Java Timezone data from 'tzdata2003a' to 'tzdata2008g' by using 'tzupdater.jar'. NSTimezone example for Asia/Shanghai: System.out.println(* Timezone = + NSTimeZone.timeZoneWithName(Asia/Shanghai, true) + /

EOFetchSpecification that locks objects like 'SELECT FOR UPDATE NO WAIT'

2008-11-04 Thread Andri vonAllmen
Hi, a EOFetchSpecification that locks objects and throws an exception on any other access trials (SELECT, UPDATE, whatever) is required. The behaviour should be the same as the SQL Statement 'SELECT FOR UPDATE NO WAIT'. For locking objects ('SELECT FOR UPDATE') the EOFetchSpecifications method