Re: Direct Action vs. Component Action...

2006-07-27 Thread Deepak Nulu
Hi Guido, Thanks for this very illuminating data point. deepak On Jul 27, 2006, at 11:53 AM, Guido Neitzer wrote: On 27.07.2006, at 20:26 Uhr, Deepak Nulu wrote: Thanks for your response. I am glad to hear that "the difference is not one that ought to invoke fear in your when choosing an

Re: Database update and insert optimizations?

2006-07-27 Thread Brendan Duddridge
Further to my post, here's an interesting article I found about why using Prepared Statements are good and how to use them properly:http://www.theserverside.com/tt/articles/article.tss?l=Prepared-StatmentsThanks, Brendan Duddridge 

Database update and insert optimizations?

2006-07-27 Thread Brendan Duddridge
Hi,Has anyone done any work to optimize the way EOF saves to the database?To be more specific, I was wondering if it would be possible to coerce EOF to use prepared statements instead of individual statements for each operation?So instead of:INSERT INTO table1 (col1, col2) values (1,2);INSERT INTO

Re: databases and bool values

2006-07-27 Thread Ian Joyner
I just store booleans in a one character field (which you should define as a protoype in EOModeler in the EOPrototypes entity as Value Class NSString, Value Class (Java) String, external type char, width 1, in case this definition ever needs to change). Then the code looks like: st

Re: Direct to Web Services Caching Problem

2006-07-27 Thread Xia, Wen
That's a good document to read. It solves my problem and now it works like a charm. Thank you, Chuck! On 7/26/06 5:34 PM, "Chuck Hill" <[EMAIL PROTECTED]> wrote: > > On Jul 26, 2006, at 5:28 PM, Xia, Wen wrote: > >> Hi all, >> >> Recently I created a Direct to Web Service application, and

Re: Dynamic images broken

2006-07-27 Thread Chuck Hill
WOResourceManager only caches the image data for the first request. If something on your page is causing the request to be re-issued, that would explain it. Is there a meta-refresh tag? Some bad HTML? You can override dispatchRequest in Application to log the request URI. This is a goo

Dynamic images broken

2006-07-27 Thread Ian Coleman
Hi, I am trying to use WOActiveImage to display one of two images which is being decided in the java class by the variables method. So the variable either returns the data of one image or the other. It works okay on safari but not in anything else(firefox, explorer, etc.). This is what shows

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Kieran Kelleher
David, I use Apache's HttpClient class for this. Here is an old article I wrote on it: http://homepage.mac.com/kelleherk/iblog/C149402102/E773353034/index.html HTH, Kieran On Jul 27, 2006, at 7:36 AM, David Griffith wrote: Hi all, I want to allow a user to enter details into a HTML Form

Re: Direct Action vs. Component Action...

2006-07-27 Thread Guido Neitzer
On 27.07.2006, at 20:26 Uhr, Deepak Nulu wrote: Thanks for your response. I am glad to hear that "the difference is not one that ought to invoke fear in your when choosing an implementation" :-). I've switched an application which does about 40k page views per day from an old G4 from comp

Re: Direct Action vs. Component Action...

2006-07-27 Thread Deepak Nulu
Hi Chuck, Thanks for your response. I am glad to hear that "the difference is not one that ought to invoke fear in your when choosing an implementation" :-). deepak On Jul 27, 2006, at 10:45 AM, Chuck Hill wrote: Hi, On Jul 27, 2006, at 9:23 AM, Deepak Nulu wrote: Hi David, Thanks

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Alex Cone
On Jul 27, 2006, at 12:44 PM, [EMAIL PROTECTED] wrote: Subject: Re: WOHTTPConnection & WORequest To: "Jerry W. Walker" <[EMAIL PROTECTED]> Hi Jerry, Well, I have no control over the other website. What I need to do is this: In my own WO App, I have a page which displays some information

Re: Direct Action vs. Component Action...

2006-07-27 Thread Chuck Hill
Hi, On Jul 27, 2006, at 9:23 AM, Deepak Nulu wrote: Hi David, Thanks for your quick response (and for your articles in your blog). I did learn from your articles that direct actions have static bookmarkable URLs. But I was wondering if: (1) I did not need static bookmarkable URLs, and

RE: EOObjectNotAvailableException

2006-07-27 Thread Watkins, Garry
Ken, thanks for understanding my pain. I am in the situation that you described. However, I think that I may have found a delegate entry point to trap the fault. If I use the databaseContextShouldFetchObjectFault, I am hoping that I can get enough information from the fault to determine if it is

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Jerry W. Walker
Hi, David, From the responses to your last post to this list, it sounds like Robert Walker has what you're looking for. I'll back out of the loop unless his code isn't what you're looking for. Though, since he's from the Walker clan, I don't see how it could fail to satisfy. :-) Regards,

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Robert Walker
David,If you are interested send me a request "off-list" and I can provide you with example code that does exactly what your are trying to do.  My sample code uses some Apache commons libraries, to make it more flexible, and to provide support for submitting the request to secured (SSL, TLS) forms.

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Patrick Middleton
On 27 Jul 2006, at 17:43, David Griffith wrote: Hi Jerry, Well, I have no control over the other website. What I need to do is this: In my own WO App, I have a page which displays some information from the database about a domain name and who it is associated with. I would like to hav

Re: databases and bool values

2006-07-27 Thread Mike Schrag
See if this helps some: http://en.wikibooks.org/wiki/Programming:WebObjects/EOF/Modeling/ Booleans On Jul 27, 2006, at 12:42 PM, Theodore Petrosky wrote: I am relatively new to WO and I don't understand how to handle boolean values. I am just starting to play with a database (postgresql) that

Re: WOHTTPConnection & WORequest

2006-07-27 Thread David Griffith
Hi Jerry, Well, I have no control over the other website. What I need to do is this: In my own WO App, I have a page which displays some information from the database about a domain name and who it is associated with. I would like to have a button on that page that can be clicked which

databases and bool values

2006-07-27 Thread Theodore Petrosky
I am relatively new to WO and I don't understand how to handle boolean values. I am just starting to play with a database (postgresql) that I normally access from a cocoa app that I wrote. When I use EOModeller to reverse engineer the table(s), the booleans come across as NSNumber class. however p

Re: Direct Action vs. Component Action...

2006-07-27 Thread Deepak Nulu
Hi David, Thanks for your quick response (and for your articles in your blog). I did learn from your articles that direct actions have static bookmarkable URLs. But I was wondering if: (1) I did not need static bookmarkable URLs, and (2) I needed a session to track user state, and (3) I am

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Jerry W. Walker
Hi, David, Whew! If I understand you correctly, I'm not sure that's doable, and if it is, would require a greater network knowledge than my own. So, here's your requirement as I infer it: From a WebObjects application at www.xxx.com, you created and sent out a response to John Smith's br

Re: NSTimestamp calculations?

2006-07-27 Thread Alex Cone
On Jul 27, 2006, at 10:17 AM, [EMAIL PROTECTED] wrote: From: [EMAIL PROTECTED] Subject: NSTimestamp calculations? Whats the easiest way to subtract NSTimestamps from each other? The methods getMinutes() etc both from NSTimestamp and Date are unfortunately deprecated :-( The getTime()

Re: WOHTTPConnection & WORequest

2006-07-27 Thread David Griffith
Hi Jerry, Thanks for the detailed response. Actually I am already aware of all of this and no I don't find the answer patronising as it is great to see someone answer any question in such detail! However, what I am trying to do is this: On a WOComponent that already exists and contains a

Re: NSTimestamp calculations?

2006-07-27 Thread Stefan Klein
You can use getTime() [EMAIL PROTECTED] schrieb: Whats the easiest way to subtract NSTimestamps from each other? The methods getMinutes() etc both from NSTimestamp and Date are unfortunately deprecated :-( ___ Do not post admin requests to the list.

Re: NSTimestamp calculations?

2006-07-27 Thread Ken Anderson
First off, you can not reply to another message and change the subject - it messes up people who view by thread, and also screws up the archived version of the list.To answer your question, there are a few ways.  If I have minutes or hours that I want to add or subject from an existing timestamp, I

NSTimestamp calculations?

2006-07-27 Thread munich
Whats the easiest way to subtract NSTimestamps from each other? The methods getMinutes() etc both from NSTimestamp and Date are unfortunately deprecated :-( ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list

Re: EOObjectNotAvailableException

2006-07-27 Thread Ken Anderson
Anjo, Unfortunately, that's not always possible. On my last big project, EOF came long after the database schema was defined and in-use. It's not uncommon for there to be a primary row, with multiple optional rows, all with the same primary key. This was considered normal and acceptabl

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Jerry W. Walker
Hi, David, Are you asking how to submit a form to a WOApplication from one of its WOComponents? Or are you asking for something much more involved? If your question is the former, then do the following: * Create a WOForm in your WOComponent. * Embed all the WOForm elements that take for

Re: Direct Action vs. Component Action...

2006-07-27 Thread David LeBer
On 26-Jul-06, at 11:11 PM, Deepak Nulu wrote: Hi, The first part of David LeBer's articles on Direct Actions (http:// david.codeferous.com/?p=63) says the following about component actions: "each visitor will receive a relatively heavyweight Session object, so they may not be approp

Re: WOHTTPConnection & WORequest

2006-07-27 Thread David Griffith
Hi Paul, Because ultimately I will be submitting values that are already part of the WO app and will be parsing the response to get the various values I need. I do not want the user to see the actual response page, only the pieces that I will extract from the response. Kind regards, Davi

Re: Re: Web Services - A newbie

2006-07-27 Thread Alex Cone
On Jul 27, 2006, at 1:15 AM, [EMAIL PROTECTED] wrote: From: Roy <[EMAIL PROTECTED]> Subject: Re: Re: Web Services - A newbie To: "Mike Schrag" <[EMAIL PROTECTED]> Hi Mike, Thanks a lot for the help. I really got a starting point. But I am having a strange problem, I followed to the point w

Re: WOHTTPConnection & WORequest

2006-07-27 Thread Paul Suh
On Jul 27, 2006, at 7:36 AM, David Griffith wrote: Hi all, I want to allow a user to enter details into a HTML Form (in a WOComponent) and when they click the Submit button, I would like to open a connection to a standard HTTP server with a specific URL and pass it the form values that the

WOHTTPConnection & WORequest

2006-07-27 Thread David Griffith
Hi all, I want to allow a user to enter details into a HTML Form (in a WOComponent) and when they click the Submit button, I would like to open a connection to a standard HTTP server with a specific URL and pass it the form values that the user entered. Can someone tell me an easy way to

Re: EO Model graphic schema question

2006-07-27 Thread Anjo Krank
OmniGraffle? But from my experience this ER view is only usable for a *very* small amount of entities in the first place. I´d rather use EOGenerator or the other thing from rubycode to create textual docs. Cheers, Anjo Am 27.07.2006 um 11:35 schrieb Amedeo Mantica: How to print it on paper

EO Model graphic schema question

2006-07-27 Thread Amedeo Mantica
How to print it on paper (my model is very large) and bot EOModeler and Xcode are unable to manage it Suggestion ? ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Hel

Re: JDBC connection failed for org.postgresql.Driver for EOMOdeler

2006-07-27 Thread Stefan Klein
EOModeler use JVM 1.1.8 so make sure postgres.jar run with this. I use normally two different JDBC drivers. The one for EOModeler in C:\Apple\Library\Java and one in the extension dir. [EMAIL PROTECTED] schrieb: Thanks! I added the jar file explicitly within this plist file now. Still no

Re: Re: JDBC connection failed for org.postgresql.Driver for EOMOdeler

2006-07-27 Thread munich
Thanks! I added the jar file explicitly within this plist file now. Still no luck. I still get the same error message. Within the error message it now even mentions the new addition within the classpathC:/Apple/Library/Java/Extensions/postgresql.jar in the end... and that is where the file

Re: JDBC connection failed for org.postgresql.Driver for EOMOdeler

2006-07-27 Thread Stefan Klein
On Windows you need to add the jar's to %NEXT_ROOT%\Library\Java\JavaConfig.plist. But, I have never tried postgresql under Windows. [EMAIL PROTECTED] schrieb: When I try to show data within the EOModeler, I get an error message as it can not find the driver 'org.postgresql.Driver' in the Java

JDBC connection failed for org.postgresql.Driver for EOMOdeler

2006-07-27 Thread munich
When I try to show data within the EOModeler, I get an error message as it can not find the driver 'org.postgresql.Driver' in the Java Runtime. I put the postgresql.jar in the following directories: - %JAVA_HOME%\lib - %NEXT_ROOT%\lib\java - %NEXT_ROOT%\lib\java\extensions - %NEXT_ROOT%\libraray\