Re: How to avoid wrong mapping after new object inserted

2008-01-16 Thread Yung-Luen Lan
Thanks for all the replies. I think my project uses Project Wonder. I'm not sure because I don't familiar with WebObjects. I just maintain this project from another guy. Why I think so? Because the project depends on the following frameworks: * ERChangeNotificationJMS.framework * ERExtensions.fr

Re: Bug??? EOClassDescription.classForAttributeKey(String)

2008-01-16 Thread Florijan Stamenkovic
Done, all other JC folks out there please try it out and report as well... Bug ID# 5691875 F On Jan 16, 2008, at 18:04, Mr. Pierre Frisch wrote: Bug report please Pierre -- Pierre Frisch [EMAIL PROTECTED] ___ Do not post admin requests to the l

Re: Chapter 11 in Practical WebObjects

2008-01-16 Thread Xia, Wen
Chuck, thanks for your help. Yes, I added a line to check whether byte_output_stream is null before instantiate the NSXMLOutputStream. I've also added other checks for null in the XMLSerializer, but does not find any. Here is my problem that I've been fighting for a while: I'm trying to write a w

Re: WOComponent children

2008-01-16 Thread Mike Schrag
document.write('src="'+libraryName+'">'); So document.write clobbers the document that you're in if it evals outside of onload, but it appears to actually look pretty good if I instead load the javascript file as an Ajax.Request with an evalScripts: true. There are some semantics tha

Re: WOComponent children

document.write(''); So document.write clobbers the document that you're in if it evals outside of onload, but it appears to actually look pretty good if I instead load the javascript file as an Ajax.Request with an evalScripts: true. There are some semantics that are different with thi

Re: wotable and display order

Ted, ISTR WOTable steps across the columns like a calendar, rather than flowing them like a newsletter. You could split the array, using DIVs as suggested or even a standard HTML table with a WORepetition within each TD or over the TD to keep rows aligned. With DIVs you would need to set CSS

Re: WOComponent children

I've heard of scriptaculous :-) In plain text scriptaculous.js has the following comment: "inserting via DOM fails in Safari 2.0, so brute force approach" That comment is saying that direct dom manipulation (via the dom _API_) does not work in Safari, which is why they don't use it and inst

Row Cache / Fault

I have a large table (100 million rows) that are children to a parent table of about 500,000 rows. I want to load children and iterating through them to calculate statistics about them and then store those stats on the parent file. I'm using Frontbase and have the indexes for the parent (PK

Re: WOComponent children

Hi Mike, I've heard of scriptaculous :-) In plain text scriptaculous.js has the following comment: "inserting via DOM fails in Safari 2.0, so brute force approach" All I'm saying is that while I agree that your proposed DOM manipulation solution is the best given the current architecture of WO

Re: WO5.4 DTW NSMutableArray ClassCastException

Yes, with or without values in the search fields. I have noticed that when I view the model in Entity Modeler, apart from a stack of warnings (was created using EOModeler), the Java EO classes are not in packages. That hasn't been a problem before, but I'll tidy that up and report back if I

Re: WOComponent children

Hi Pierre, I hear what you're saying. Adding a new method to WOComponent that would only be used for HTML generation feels unclean. But, to play devil's advocate, you wouldn't implement that method in your WOComponent unless you are generating HTML and it sure provides an elegant solution. You

Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Hi Florijan, Am 16.01.2008 um 22:08 schrieb Florijan Stamenkovic: Sorry for the confusion... My current setup is to have a common superclass that only provides the capability to fire events, but does not do it. It requires subclasses to define setter methods that do fire events. What I w

Re: Bug??? EOClassDescription.classForAttributeKey(String)

Bug report please Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 16, 2008, at 12:52, Florijan Stamenkovic wrote: Hi all, Running WO 5.3, it seems that the client side of EOF has a bug (what a surprise). The bug being: EOClassDescription's classForAttributeKey(String key) method returns

Wonder Application Template and WOComponent

Hello, When using the Wonder Application Template, only the Application and Session classes are subclassed with project WOnder versions. I was wondering if there was any good specific reason why the Main component does not subclass ERXComponent instead of WOComponent? Also, is it possible t

Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Sorry for the confusion... My current setup is to have a common superclass that only provides the capability to fire events, but does not do it. It requires subclasses to define setter methods that do fire events. What I want is an EOGenericRecord record subclass that will fire events by

Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Hi Florijan, Am 16.01.2008 um 21:08 schrieb Florijan Stamenkovic: Hi Fabian, Thanks for the reply. This is (more or less) what I am doing now. I have a method provided in the common superclass that fires the event, the only difference from your approach is that I do it after the change

Bug??? EOClassDescription.classForAttributeKey(String)

Hi all, Running WO 5.3, it seems that the client side of EOF has a bug (what a surprise). The bug being: EOClassDescription's classForAttributeKey(String key) method returns null for a plain String attribute (name). Strangely the JavaDoc for the method says nothing at all, I assume what i

Re: NSTimestamp mapped to DATE for mysql

Hi John, On 17/01/2008, at 2:53 AM, John Pollard wrote: We have tables with mysql DATE type fields and EO attribute types of NSTimestamp. After upgrading mysql from 5.0.18 to 5.0.45, the queries are no longer matching against dates correctly. For recent dates the date in the query sent t

Ant Build Problem

Hi all: I've been having a problem with ant builds from the command line in Eclipse 3.3.1.1 with WOLips 3.3.4574. To isolate the problem, I created a Dummy project and when I run an ant build from the command line and then launch the app I still get the same error: BUILD SUCCESSFUL To

Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Hi Fabian, Thanks for the reply. This is (more or less) what I am doing now. I have a method provided in the common superclass that fires the event, the only difference from your approach is that I do it after the change has occurred. What I wanted to do was get rid of the EOGenerator /

Re: "server_port" header is always "0" - SOLVED

Bug report please. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 16, 2008, at 9:34, James Brook wrote: This did turn out to be a problem with the Apache 2.2 adaptor (both the Apple and the Wonder one). In case anyone needs it, I have attached a patch for the Apple 2.2 adaptor that seems

Re: valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Hi Florijan, Am 16.01.2008 um 20:20 schrieb Florijan Stamenkovic: Hi all, I've been trying to override some EOCustomObject methods to perform event firing. However, I bumped into a problem when the objects are first being initialized with values. The thing is, i use the old value in the

valueForKey(...) from within takeStoredValueForKey(...) = infinite loop

Hi all, I've been trying to override some EOCustomObject methods to perform event firing. However, I bumped into a problem when the objects are first being initialized with values. The thing is, i use the old value in the fired event. This meant my takeStoredValue method looks like this:

Re: WOLips Component Custom Templates?

not yet On Jan 16, 2008, at 10:17 AM, Archibal Singleton wrote: Hello, Is it possible to use a "custom component template" for the creation of components (using the WO Package Explorer contextual menu) à la WOLips +3.3 Custom Project Templates? (cfr http://wiki.objectstyle.org/confluen

WOLips Component Custom Templates?

Hello, Is it possible to use a "custom component template" for the creation of components (using the WO Package Explorer contextual menu) à la WOLips +3.3 Custom Project Templates? (cfr http://wiki.objectstyle.org/confluence/display/WOL/Custom+Project+Templates) TIA = tmk =

Re: "server_port" header is always "0" - SOLVED

This did turn out to be a problem with the Apache 2.2 adaptor (both the Apple and the Wonder one). In case anyone needs it, I have attached a patch for the Apple 2.2 adaptor that seems to fix the problem. I am not sure how one goes about submitting a patch to Apple. Is this the same as the

Re: "server_port" header is always "0" - SOLVED

This did turn out to be a problem with the Apache 2.2 adaptor (both the Apple and the Wonder one). In case anyone needs it, I have attached a patch for the Apple 2.2 adaptor that seems to fix the problem. I am not sure how one goes about submitting a patch to Apple. --- /Users/jbrook/Desktop/

Re: Tâche pour déploiement à distance

Yes... but it definitely will work for me! I didn't realize I could use rsync from the ant file. I obviously know little about ant. Now even an easier way for my remote updates. thanks -James Cicenia On Jan 16, 2008, at 10:44 AM, Pascal Robert wrote: Oups, wrong list :-) Bonjour, voi

Re: Tâche pour déploiement à distance

Oups, wrong list :-) Bonjour, voici une solution pour faire le déploiement à distance: name="deployMigration"> failonerror="true"> passphr

Re: WO5.4 DTW NSMutableArray ClassCastException

Does this occurs with any values in the fields? It looks like the request is returning an array of values instead of a single value. Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 16, 2008, at 3:37, John Pollard wrote: Hi Pierre, The page and the query that runs when Search is clicked is

Tâche pour déploiement à distance

Bonjour, voici une solution pour faire le déploiement à distance: name="deployMigration"> failonerror="true"> passphrase="" username="${user

NSTimestamp mapped to DATE for mysql

Hi List, We have tables with mysql DATE type fields and EO attribute types of NSTimestamp. After upgrading mysql from 5.0.18 to 5.0.45, the queries are no longer matching against dates correctly. For recent dates the date in the query sent to the database has no time component, such as:

Re: Unable to locate WOOpenURL on your computer

I had the same problem a couple of days ago. Remove the blank space before WOOpenURL in the command line and it will work fine. -Dawn ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lis

Re: How to avoid wrong mapping after new object inserted

Am 16.01.2008 um 14:42 schrieb Mike Schrag: You forgot the "yawn"... Technically also the "blah blah" Indeed! You should take care next time. This can't be allowed to happen again! Cheers, Anjo ___ Do not post admin requests to the list. They wi

Re: How to avoid wrong mapping after new object inserted

But you're sorting descending order on creation data... so the indexes are going to change. ... unless you use Project Wonder, which has a fix for this problem. Incidentally, coming off of that previous thread discussing "fatal flaws" with WO, THIS bug is what I consider a "a fatal flaw in WO.

Re: How to avoid wrong mapping after new object inserted

But you're sorting descending order on creation data... so the indexes are going to change. ... unless you use Project Wonder, which has a fix for this problem. You forgot the "yawn"... Technically also the "blah blah" .. I was going to follow up with that, but I figured it would be inferred

Re: Avoiding duplicate records

I have the same situation in my database: Java checks to see weither the email address is already in use; if it is, the user gets a message: "Sorry; this email address is already in use in our database ... please try again." Up to the user then. ... until you have two instances, and two user

Re: How to avoid wrong mapping after new object inserted

Am 16.01.2008 um 14:35 schrieb Mike Schrag: But you're sorting descending order on creation data... so the indexes are going to change. ... unless you use Project Wonder, which has a fix for this problem. You forgot the "yawn"... Cheers, Anjo __

Re: How to avoid wrong mapping after new object inserted

But you're sorting descending order on creation data... so the indexes are going to change. ... unless you use Project Wonder, which has a fix for this problem. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev maili

Re: Unable to locate WOOpenURL on your computer

On 16-Jan-08, at 1:50 AM, Joe Moreno wrote: Are there any issues with simply coping WOOpenURL from Tiger into / System/Library/WebObjects/Executables? I'm thinking it was left out for a good reason - but I'm not sure why. No, there is no problem copying WOOpenURL from Tiger. It works fine.

Re: Avoiding duplicate records

Hello; I completely agree with Dave's suggestion. I have the same situation in my database: Java checks to see weither the email address is already in use; if it is, the user gets a message: "Sorry; this email address is already in use in our database ... please try again." Up to the user then

Re: WO5.4 DTW NSMutableArray ClassCastException

Hi Pierre, The page and the query that runs when Search is clicked is all D2W's work. The page is brought into being using: D2W.factory().queryPageForEntityNamed("Note", session()); i.e. it builds itself around my Note entity object. So I would assume that D2W is not running a raw query. John

Re: WO5.4 DTW NSMutableArray ClassCastException

Would your fetch specification have the raw row flag turned on? Pierre -- Pierre Frisch [EMAIL PROTECTED] On Jan 16, 2008, at 0:44, John Pollard wrote: Hi WO Dev List, We have moved several apps to Leopard/WO5.4 successfully (not D2W), but we have one D2W application which produces the fol

Re: How to avoid wrong mapping after new object inserted

Hi, On 16/01/2008, at 8:12 PM, Yung-Luen Lan wrote: Thanks for Lachlan's response. But I'm a little bit confused. Does that mean I have to add a button, says, "Refresh the sales," to invoke the refresh action? Yes. Sorry, should have been clearer... The idea is that during the request/re

Re: How to avoid wrong mapping after new object inserted

Hi, Thanks for Lachlan's response. But I'm a little bit confused. Does that mean I have to add a button, says, "Refresh the sales," to invoke the refresh action? Or can I just use the refresh button on my browser to do that? Thanks for the help. Regards, yllan On Jan 16, 2008 3:36 PM, Lachlan

WO5.4 DTW NSMutableArray ClassCastException

Hi WO Dev List, We have moved several apps to Leopard/WO5.4 successfully (not D2W), but we have one D2W application which produces the following exception when a search of some data is triggered by clicking on a Search button in the app. As D2W is 90+% WO doing its magic stuff, I am not qui