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 u

Antw: Re: XMLHttpRequest - call direct action using relative URL

2010-09-22 Thread Andri vonAllmen
>>> Chuck Hill schrieb am Donnerstag, 23. September >>> 2010 um 08:25 in Nachricht <7abe3bd8-8f72-4914-a19e-aa6161f81...@global-village.net>: > > On Sep 22, 2010, at 11:18 PM, Andri vonAllmen wrote: > > > Hi List, > > > > I'd like

XMLHttpRequest - call direct action using relative URL

2010-09-22 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); xmlHttp.s

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

2010-07-14 Thread Andri vonAllmen
rowser. I think 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" schrieb am Mittwoch, 14. Juli 2010 um 11:04 in Nachricht <4c3d99d00277a...@srv-brisi.cag.cedes.com>: > >&g

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

2010-07-14 Thread Andri vonAllmen
>>> Chuck Hill 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

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] Exception while sending response: java.net.SocketException: Connection reset by peer: socket write error I

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 cru

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

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 O

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 (in

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

2009-10-14 Thread Andri vonAllmen
27;t what exactly you want do, but have 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

Antw: Re: Problem with pages saved in a variable

2009-10-13 Thread Andri vonAllmen
's maintenance of page state. I am surprised >> this does not cause more issues for you. >> >> Why are you doing this? It seems like a rather bad idea. >> >> >> Chuck >> >> >> >> On Oct 13, 2009, at 1:29 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 generat

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 m

Antw: Re: Help with optional to-one relationship

2009-08-27 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, secon

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

2009-08-10 Thread Andri vonAllmen
ot;); strDirectory = strFile.substring(0, intPos); alert(strFile + '\n\n' + strDirectory); return false; } Found on: http://forums.aspfree.com/web-layout-43/browse-button-in-html-for-directory-selection-alone-not-file-36330.html >>> "Andri vonAllmen" Dienstag, 11. Aug

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.

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 Donnerstag, 16. Juli 2009 03:10 >>> Hello, I just posted, on wocommu

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

2009-05-06 Thread Andri vonAllmen
>>> Chuck Hill 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. >> >> &

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

2009-05-05 Thread Andri vonAllmen
= newEditingContext.faultForGlobalID(globalID, newEditingContext); } } return result; } --- Andri >>> Chuck Hill 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 u

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

2009-05-05 Thread Andri vonAllmen
ay be cumbersome for lots 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 Freitag, 1. Mai 2009 16:50 >>> On May 1, 2009, at 5:07 AM, Andri vonAllm

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

2009-05-04 Thread Andri vonAllmen
ibutes values... Andri >>> Chuck Hill 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

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 Mittwoch, 29. April 2009 15:46 >>> Hi Andri, try using EOEnterpriseObject result = (EOEnterpriseObject)EOUtilities.localInstanceOfObject(newEditingContext,

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 ar

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

2009-03-18 Thread Andri vonAllmen
cts developer very rarely, if ever, deals 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

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 me

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 n

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