Re: Weird sql generation problem running migration from WO5.4 (Oracle)

2008-12-17 Thread Richard Stephens
Chuck, I have filed a bug both in Wonder and with apple. If you can send me a compiled copy of the modified framework I will test it, but I don't have the time to grab the Wonder source and recompile it myself. -- Regards, Richard Stephens Ph: 07 3136 3426 Mob: 0410 111 570 Email: rich...@

casting in qualifier format strings

2008-12-17 Thread Mike Schrag
I very rarely use qualifier format strings, but i have a special case where I needed one, but i needed a timestamp literal in it ... turns out you can cast inside of a qualifier format string: EOQualifier q = EOQualifier.qualifierWithQualifierFormat("date = (NSTimestamp)'2008-10-01 05:37:01

Re: computeQueryDictionaryInContext error

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 5:49 PM, Randall Perry wrote: I'm getting started with WOLips/Eclipse. Installed the all-in-one installer, latest Xcode tools, and latest WO. Watched part1 of the Dave Leber tutorial. I downloaded the source and ran the app. Migration went ok -- tables were created in d

Re: Weird sql generation problem running migration from WO5.4 (Oracle)

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 5:51 PM, Richard Stephens wrote: Hey Chuck, When run with WO5.3 the generated SQL looks like this: alter table CRS add (SCRNV NUMBER) ALTER TABLE CRS ADD CONSTRAINT CRS_SCRNV_CDATID_FK FOREIGN KEY (SCRNV) REFERENCES CRS (CDATID) DEFERRABLE INITIALLY DEFERRED OK, so...

Re: [ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread Lachlan Deck
On 18/12/2008, at 7:10 AM, John Huss wrote: Thanks to Pascal Robert, the demo applicationis now available online. There are links in it to easily view the source for each page so you can see some examples of what GWT code looks like. Che

Re: Weird sql generation problem running migration from WO5.4 (Oracle)

2008-12-17 Thread Richard Stephens
Hey Chuck, When run with WO5.3 the generated SQL looks like this: alter table CRS add (SCRNV NUMBER) ALTER TABLE CRS ADD CONSTRAINT CRS_SCRNV_CDATID_FK FOREIGN KEY (SCRNV) REFERENCES CRS (CDATID) DEFERRABLE INITIALLY DEFERRED -- Regards, Richard Stephens Ph: 07 3136 3426 Mob: 0410 111 570 Em

Re: Two directActions on one form

2008-12-17 Thread Thomas Wedderburn-Bisshop
You could try On 18/12/2008, at 12:34 PM, David Holt wrote: I must be missing something basic, but I am doing simple login form with two submit buttons. I used to have the form bound to a login direct action and one submit button. Now I have: User Login Username:

Re: computeQueryDictionaryInContext error

2008-12-17 Thread Randall Perry
I'm getting started with WOLips/Eclipse. Installed the all-in-one installer, latest Xcode tools, and latest WO. Watched part1 of the Dave Leber tutorial. I downloaded the source and ran the app. Migration went ok -- tables were created in db. But app failed with same computeQueryDictionaryInContex

Two directActions on one form

2008-12-17 Thread David Holt
I must be missing something basic, but I am doing simple login form with two submit buttons. I used to have the form bound to a login direct action and one submit button. Now I have: User Login Username: "username" /> Password: "password" />

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 18/12/2008, at 8:25 AM, Andrew Lindesay wrote: Ignoring the additional JavaScript stuff, I tend to do one of two things; 1) let the data get sucked into the EO-s and then do any "last minute fiddles" in an override of "takeValuesForRequest" 2) actually store the data into an intermediate

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 1:47 PM, Paul Hoadley wrote: On 18/12/2008, at 4:29 AM, Chuck Hill wrote: In case the answer is no, here's the background. I have a WOPopUpButton that displays a list of choices, as well as a noSelectionString. The user can make a choice from the list, or supply an

Cool new tool from Mr. Schrag: Click to Debug

2008-12-17 Thread Chuck Hill
http://wiki.objectstyle.org/confluence/display/WOL/Click+to+Debug -- Chuck Hill Senior Consultant / VP Development Practical WebObjects - for developers who want to increase their overall knowledge of WebObjects or who are trying to solve specific problems. http://www.global

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Andrew Lindesay
Hello Paul; Ignoring the additional JavaScript stuff, I tend to do one of two things; 1) let the data get sucked into the EO-s and then do any "last minute fiddles" in an override of "takeValuesForRequest" 2) actually store the data into an intermediate non-EO model object and then in the

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 18/12/2008, at 4:29 AM, Chuck Hill wrote: In case the answer is no, here's the background. I have a WOPopUpButton that displays a list of choices, as well as a noSelectionString. The user can make a choice from the list, or supply an "other" value in the WOTextField, but they're mutual

Re: Outer Joins?

2008-12-17 Thread Mike Schrag
The problem is that I can't select Outer Join for the relationship in Entity Modeler. The drop-down is grayed-out. Yes ... My bad ... This was fixed yesterday, I think. ms ___ Do not post admin requests to the list. They will be ignored. Webobjects-d

Re: [ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread John Huss
No, it's just a regular deployment. No servlets. It uses an embedded tomcat during development to run "hosted mode" though. On Wed, Dec 17, 2008 at 2:37 PM, Anjo Krank wrote: > This is neat! Is the tomcat deployment mandatory? > > Cheers, Anjo > ___

Re: [ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread Anjo Krank
This is neat! Is the tomcat deployment mandatory? Cheers, Anjo Am 17.12.2008 um 18:08 schrieb John Huss: I've started a WOGWT project to integrate GWT (Google Web Toolkit) with WebObjects. It's still very young, but if you are interested in getting AJAXy behavior and hate Javascript, then

Re: [ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread John Huss
That's actually what it's supposed to do: it shows an error in a dialog. :-) I know, I should change the text to be more regular. John On Wed, Dec 17, 2008 at 2:24 PM, Chuck Hill wrote: > Nice work! But... :-) the dialog box example yields this error: > > javax.naming.NameNotFoundException

Re: [ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread John Huss
Thanks to Pascal Robert, the demo applicationis now available online. There are links in it to easily view the source for each page so you can see some examples of what GWT code looks like. Check it out! John

Re: Outer Joins?

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 8:16 AM, David Avendasora wrote: Hi all, Before I start: yes Chuck, I've googled, searched documentation, etc aboot this. :-P I have a to-one relationship in which the destination object may or may not actually exist. The destination object may get deleted out of th

Re: optimization/indexing

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 9:25 AM, Jeff Schmitz wrote: Yes, now that I think of it, there is one of these "crazy" joins that's probably coming into play that joins each of my 7000 rows with 65 rows in a different table, so that table must have about 450,000 rows. Any good optimization approache

Re: WebObjects 4.5.1

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 10:05 AM, dfles...@oceanobjects.com wrote: I have an old WOF Objective-C code application that I would like to revive and convert to Java and WO 5.X However, I would like to get the old version running again running again before converting it. However, I can't find m

WebObjects 4.5.1

2008-12-17 Thread dfleskes
I have an old WOF Objective-C code application that I would like to revive and convert to Java and WO 5.X  However, I would like to get the old version running again running again before converting it. However, I can't find my old 4.5.1 installation CD.  I called Apple support and searched

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Chuck Hill
On Dec 17, 2008, at 1:11 AM, Paul Hoadley wrote: Hello, Say I have the following in a HTML template: That is, the WOTextField is rendered after the WOPopUpButton. Experimentally, it looks like setAnswerSelection() is being called before setOtherValue() every time---can I rely on t

Re: optimization/indexing

2008-12-17 Thread Jeff Schmitz
Yes, now that I think of it, there is one of these "crazy" joins that's probably coming into play that joins each of my 7000 rows with 65 rows in a different table, so that table must have about 450,000 rows. Any good optimization approaches for these type of one to "very many" relationships?

[ANN] WOGWT framework for integrating GWT with WebObjects

2008-12-17 Thread John Huss
I've started a WOGWT project to integrate GWT (Google Web Toolkit) with WebObjects. It's still very young, but if you are interested in getting AJAXy behavior and hate Javascript, then this is for you. GWT is basically a Java-

Outer Joins?

2008-12-17 Thread David Avendasora
Hi all, Before I start: yes Chuck, I've googled, searched documentation, etc aboot this. :-P I have a to-one relationship in which the destination object may or may not actually exist. The destination object may get deleted out of the database without EOF's knowledge. The FK values are st

Re: Can not get objectForGlobalID

2008-12-17 Thread Gennady Kushnir
Thank you! That works. 2008/12/16 Gary Teter : > In general you want to use faultForGlobalID for this sort of thing. > objectForGlobalID will return null if the enterprise object in question > hasn't yet been registered in that particular editing context. > faultForGlobalID will properly register

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
On 17/12/2008, at 8:26 PM, Andrew Lindesay wrote: I find that a good way to deal with this sort of thing is to override "takeValuesFromRequest", call super, and then jiggle the data about afterwards to suit. Trying to depend on the sequence of elements on the page can become a fragile solu

Re: Is dynamic element action method order deterministic?

2008-12-17 Thread Andrew Lindesay
Hello Paul; I find that a good way to deal with this sort of thing is to override "takeValuesFromRequest", call super, and then jiggle the data about afterwards to suit. Trying to depend on the sequence of elements on the page can become a fragile solution if the page design changes. che

Is dynamic element action method order deterministic?

2008-12-17 Thread Paul Hoadley
Hello, Say I have the following in a HTML template: That is, the WOTextField is rendered after the WOPopUpButton. Experimentally, it looks like setAnswerSelection() is being called before setOtherValue() every time---can I rely on this behaviour? In case the answer is no, here's th