Re: Beginners question: three-tier app with cocoa client

2006-04-21 Thread David Avendasora
While iTunes itself may be a cocoa/carbon/whatever application, so is Safari. The part of iTunes that interacts with the Music Store certainly doesn't act like a regular Cocoa application, it acts like a, wait for it, web application. The UI for the store is entirely contained within the ri

Re: Fetch Specifications and boolean values

2006-04-21 Thread Chuck Hill
On Apr 21, 2006, at 7:20 PM, Art Isbell wrote: On Apr 21, 2006, at 4:03 PM, Daniel DeCovnick wrote: I THINK 1 is working. It's generating what looks like valid SQL at least: SELECT customerID FROM CUSTOMER WHERE hasShipped = ? AND customerID = customerID ORDER BY creationTime asc Isn't

Re: Fetch Specifications and boolean values

2006-04-21 Thread Art Isbell
On Apr 21, 2006, at 4:03 PM, Daniel DeCovnick wrote:I THINK 1 is working. It's generating what looks like valid SQL at least:SELECT customerID FROM CUSTOMER WHERE hasShipped = ? AND customerID = customerID ORDER BY creationTime asc Isn't hasShipped a QueueSpot property?  If so, the above SQL is inv

Re: Fetch Specifications and boolean values

2006-04-21 Thread Daniel DeCovnick
On Apr 21, 2006, at 8:50 PM, Chuck Hill wrote:On Apr 21, 2006, at 5:30 PM, Daniel DeCovnick wrote: Hi Chuck,What you said was about what I'd figured, but here's the result from the SQL tab when I do (queuespots.hasShipped) = trueError - could not generate valid SQL.Exception reason: sqlStringForKey

Re: Java 1.5 & WO?

2006-04-21 Thread Art Isbell
On Apr 21, 2006, at 3:09 PM, Chuck Hill wrote: That is an admirably short list of serious issues! Nice job. But the workaround listed for Radar #4443822 on developer.apple.com/releasenotes/Java/Java50Release4RN/ OutstandingIssues/chapter_4_section_2.html> may solve some EOModeler problems

Re: Webobjects-dev Digest, Vol 3, Issue 250

2006-04-21 Thread Paul Suh
Mohapatra, Do you have a space character in the path anywhere from the file system root to the location of the actual executable, e.g. in the project name or an enclosing folder? This is a common cause of the Application class not being found. There's a long-standing bug in the launch scr

Re: Java 1.5 & WO?

2006-04-21 Thread Chuck Hill
That is an admirably short list of serious issues! Nice job. Chuck On Apr 21, 2006, at 6:00 PM, Hsu wrote: Release Notes for Java SE 5.0 Release 4 are now available: Karl -- Quantum Express: When you absolutel

Re: Java 1.5 & WO?

2006-04-21 Thread Hsu
Release Notes for Java SE 5.0 Release 4 are now available: Karl -- Quantum Express: When you absolutely, positively, don't know where it's going or when it needs to be there. Homepage: http://homepage.mac.c

Re: How to selectively save EO

2006-04-21 Thread Paul Suh
On Apr 21, 2006, at 3:57 PM, Ken Anderson wrote: Also, I highly suggest never, ever, using hackery in EOF to partially save an EC... and I speak from experience :) AMEN!! --Paul Paul Suh http://www.ps-enable.com/ [EMAIL PROTECTED]

Re: How to selectively save EO

2006-04-21 Thread Paul Suh
Ondra, This is a situation that cries out for nested and peer editing contexts. Each Volume should have its own peer EC. Each Page then has an EC whose object store is the Volume's EC. Remember that different EC's can each have their own copy of the same EO, each of which has the same EOG

Re: WOHyperlink and bindings

2006-04-21 Thread Chuck Hill
The easy solution is to wrap it all in a form and make the WOHyperlinks submit buttons. Otherwise, you will need some JavaScript and trickery to get the form submitted and let WO know which link was clicked. Chuck On Apr 21, 2006, at 5:49 PM, Steve Sharman wrote: Dear All, I'm having a

Re: Fetch Specifications and boolean values

2006-04-21 Thread Chuck Hill
On Apr 21, 2006, at 5:30 PM, Daniel DeCovnick wrote: Hi Chuck, What you said was about what I'd figured, but here's the result from the SQL tab when I do (queuespots.hasShipped) = true Error - could not generate valid SQL. Exception reason: sqlStringForKeyComparisonQualifier:: attempt to

WOHyperlink and bindings

2006-04-21 Thread Steve Sharman
Dear All, I'm having a simple problem which I'm sure I can solve by RTFM - my problem is that at this point I'm not sure which part of the FM I should be reading... I have a simple page that allows users to build up a list of organisations to be included in a mail-merge file, and then to

Re: Fetch Specifications and boolean values

2006-04-21 Thread Daniel DeCovnick
Hi Chuck,What you said was about what I'd figured, but here's the result from the SQL tab when I do (queuespots.hasShipped) = trueError - could not generate valid SQL. Exception reason: sqlStringForKeyComparisonQualifier:: attempt to generate SQL for EOKeyComparisonQualifier 0x1356ba80 '(queuespots

Re: Fetch Specifications and boolean values

2006-04-21 Thread Chuck Hill
Hi Dan, On Apr 21, 2006, at 4:28 PM, Daniel DeCovnick wrote: I'm trying to create a fetch specification in EOModeler, where it returns all the objects where a particular boolean value therein is true. I've got a "Customer" entity, with a to-many to a "QueueSpot" entity. I want to create a

Fetch Specifications and boolean values

2006-04-21 Thread Daniel DeCovnick
I'm trying to create a fetch specification in EOModeler, where it returns all the objects where a particular boolean value therein is true. I've got a "Customer" entity, with a to-many to a "QueueSpot" entity. I want to create a fetch specification "shipping history" on Customer where the qualifier

Re: Error in Running any application in Xcode 2.1

2006-04-21 Thread Ray Kiddy
On Apr 21, 2006, at 12:35 PM, Chuck Hill wrote: It seems pretty clear that what is missing is your Application class. Is it in a package? Are there spaces on the path to the project? Chuck Also, delete all your intermediate build products and indexes and re- build. This works whenev

Re: How to selectively save EO

2006-04-21 Thread Ken Anderson
Ondra, The general rule I go by, which fits EOF, is that if the user has a save button on a window/panel whatever, it saves the entire object graph. Obviously, there's no reason they can't have multiple documents/windows open peering into different parts of your object graph. There's n

Re: How to selectively save EO

2006-04-21 Thread Ondra Cada
Paul, On 21.4.2006, at 21:22, Paul Suh wrote: You should probably go back and re-think your design, so that you are no longer trying to save the single EO -- instead, your natural flow will be to save the entire state of the object graph tracked by the EC. My archetypal wanna-save-part-o

Re: Error in Running any application in Xcode 2.1

2006-04-21 Thread Chuck Hill
It seems pretty clear that what is missing is your Application class. Is it in a package? Are there spaces on the path to the project? Chuck On Apr 21, 2006, at 11:55 AM, Mohapatra Ashish wrote: Hi All, I am repeatedly getting this error when I try to run any WebObjects Application. P

Re: How to selectively save EO

2006-04-21 Thread Sacha Michel Mallais
On Apr 21, 2006, at 11:32 AM, [EMAIL PROTECTED] wrote: I would like to save newly created EO immediately but there could be other objects in the default EditingContext which I do not want to commit to the database immediately. My first attempt was to create a new short term EditignContext, in

Re: How to selectively save EO

2006-04-21 Thread Paul Suh
Louis, Trying to save a single EO while leaving others unsaved is almost always indicative of a problem in your application's design. Think of an EOEditingContext as being somewhat like an SQL transaction, except that it persists in RAM beyond a single commit. Now, saying that you need to

Re: Error in Running any application in Xcode 2.1

2006-04-21 Thread Robert Walker
Is there any particular reason you are not using XCode 2.2.1 instead of 2.1? XCode 2.1 is a deprecated version anyway. Is there any way that you can test build your application using XCode 2.2.1/WO 5.3.1? On Apr 21, 2006, at 2:55 PM, Mohapatra Ashish wrote: Hi All, I am repeatedly getti

Error in Running any application in Xcode 2.1

2006-04-21 Thread Mohapatra Ashish
Hi All, I am repeatedly getting this error when I try to run any WebObjects Application. Please let me know what element I might be missing on my application or system. --- Can't load Application class, exiting... java.lang.ClassNotFoundException: Application at java.net.URLClass

Re: How to selectively save EO

2006-04-21 Thread Ken Anderson
Ondra, I'm not sure what the problem is - it makes perfect sense, since an editing context is a single perspective onto data. If you want to save other objects prior, you can also have child editing contexts that will commit changes to the parent. Note that you can cross contexts with sh

Re: How to selectively save EO

2006-04-21 Thread Arturo Perez
Louis Demers wrote: Hi I would like to save newly created EO immediately but there could be other objects in the default EditingContext which I do not want to commit to the database immediately. My first attempt was to create a new short term EditignContext, insert my newly created EO in it

Re: Transferring data

2006-04-21 Thread Kieran Kelleher
You could also use a SQL dump and a SQL import. For convenience throw the two commands into a bash script. For example, I regularly want to replace my dev data with the live data in the live database server so I can test my app with "real world" data/conditions and I use a simple bash scrip

Re: Transferring data

2006-04-21 Thread Paul Suh
Randy, What you're thinking of is the old eoutil tool. It's still there, just hidden a bit and turned into a Java application. Open a terminal window and execute /System/Library/WebObjects/JavaApplications/ javaeoutil.woa/javaeoutil -- at first it will look like a typical WO app is launchi

Re: How to selectively save EO

2006-04-21 Thread Ondra Cada
Ken, On Apr 21, 2006, at 1:52 PM, Ken Anderson wrote: A golden rule is that all related objects have to be in the same editing context I've bumped into this problem once or twice myself (and, Louis, alas, have not found a good solution in EOF). Time to time it might be reasonable to have

Re: How to selectively save EO

2006-04-21 Thread Ken Anderson
Louis, First off, please start a new message instead of replying to an old message and changing the subject. It messes up people organizing their email by thread. On Apr 21, 2006, at 12:19 AM, Louis Demers wrote: Hi I would like to save newly created EO immediately but there could be

Re: Beginners question: three-tier app with cocoa client

2006-04-21 Thread Guido Neitzer
On 21.04.2006, at 9:51 Uhr, Frank Herzog wrote: As I see it, in WO, I can either choose between a Java Client application, or a Web application which is accessed through a web browser. Additional you can use WebServices to communicate with a Cocoa application. Be prepared to have a lot o

Re: Beginners question: three-tier app with cocoa client

2006-04-21 Thread Paul Lynch
On 21 Apr 2006, at 08:51, Frank Herzog wrote: I'm new to WebObjects and web application development. I've read quite a few things, but now I'm stuck in questions of the general application layout. As I see it, in WO, I can either choose between a Java Client application, or a Web applica

Beginners question: three-tier app with cocoa client

2006-04-21 Thread Frank Herzog
Hi, I'm new to WebObjects and web application development. I've read quite a few things, but now I'm stuck in questions of the general application layout. As I see it, in WO, I can either choose between a Java Client application, or a Web application which is accessed through a web brow