Re: Incorrectly Parsed Form Values in WOContext

2008-10-05 Thread Q
If you want to supply a URL as a value like this you will need to URL escape it in your javascript first and then decode it in your code. On 06/10/2008, at 3:08 PM, Joe Moreno <[EMAIL PROTECTED]> wrote: Hi all, I have a WOContext that seems to be incorrectly parsing a form value sent back

Re: MySQL and Generate SQL, and inline bindings problems

2008-10-05 Thread Guido Neitzer
On 05.10.2008, at 17:37, Thomas Worrall wrote: When I go to do Generate SQL for my EOModel, it does not escape the table or field names in backticks (`). Because of this, table names like Order cause SQL errors. The problem is, that the MySQL plugin doesn't support identifier quoting. The

Incorrectly Parsed Form Values in WOContext

2008-10-05 Thread Joe Moreno
Hi all, I have a WOContext that seems to be incorrectly parsing a form value sent back from a web browser. The behavior is consistent, regardless of the browser. Mac OS X 10.5.5 WebObjects 5.3.3 Eclipse 3.3.2 WOLips 3.3.5047 Browser: Safari, Firefox, and IE 6 on XP Details: The follow

Re: EOSortOrdering or ERXSortOrdering

2008-10-05 Thread getsharp
I guess I should have originally asked what error Eclipse gave you regarding your sortOrderings argument? The following is a legitimate value for sortOrderings in your example: new NSArray(new ERXSortOrdering("id",ERXSortOrdering.CompareDescending)) although it can be made cleaner using ERX

Re: EOSortOrdering or ERXSortOrdering

2008-10-05 Thread WebObjects
aha... ok but id is not a class property.. its the pk... :S ... why do I want them like that?...because the other class property its the name of the week, which its monday - sunday, but its repeated on the table, Im fetching all mondays... this was just to try out about the sort orderin

Re: EOSortOrdering or ERXSortOrdering

2008-10-05 Thread getsharp
Hi gus, I would recommend use ERXKey for sort ordering. EOSortOrdering order = WorkDay.ID.desc(); NSArray order = WorkDay.ID.descs(); assuming "id" is a class property. sharpy.. On 06/10/2008, at 12:22 PM, WebObjects wrote: Hello, well Im fetching some data, and I encounter here something,

EOSortOrdering or ERXSortOrdering

2008-10-05 Thread WebObjects
Hello, well Im fetching some data, and I encounter here something, when I created the EOModel and generate the javaclases, I got a method : public static NSArray fetchWorkDaies(EOEditingContext editingContext, EOQualifier qualifier, NSArray sortOrderings) { well, before I realize its third

Re: Rapid Turnaround mode not working

2008-10-05 Thread Jerome Chan
I am also experiencing the same problem. I've turned on PB.project building but cannot use Rapid Turnaround mode. On Oct 6, 2008, at 9:24 AM, Paulo Filipe Andrade wrote: Try enabling PB.project on WOLips build preferences. For some reason I was having problems with rapidturnaround with this

Re: Unit testing

2008-10-05 Thread Paulo Filipe Andrade
Searching this list about testing I found this thread. On Jun 13, 2008, at 8:22 PM, John Huss wrote: Did you try WOUnitTest2? It works pretty well, but doesn't actually use the DB. Also, you can use ERXMemoryAdaptor in Wonder to mimic DB access without actually having a DB. I had no id

Re: Rapid Turnaround mode not working

2008-10-05 Thread Paulo Filipe Andrade
Try enabling PB.project on WOLips build preferences. For some reason I was having problems with rapidturnaround with this setting off. On Oct 5, 2008, at 11:18 PM, John Huss wrote: But I'd like to know what the difference is in this project that keeps it from working. The WebServerResource

MySQL and Generate SQL, and inline bindings problems

2008-10-05 Thread Thomas Worrall
Hi. Once again, I may be asking newbie questions, I'm afraid. When I go to do Generate SQL for my EOModel, it does not escape the table or field names in backticks (`). Because of this, table names like Order cause SQL errors. In googling, all I could find was a suggestion to name my tables

Rapid Turnaround mode not working

2008-10-05 Thread John Huss
I created a new Wonder Application and for some reason rapid turn-around isn't working. It works for all my other projects but not this one. I run them all in web mode, not direct connect. The startup log shows this line: "WOAllowRapidTurnaround = true" But in Application _rapidTurnarou

Re: best practice?

2008-10-05 Thread Guido Neitzer
On 05.10.2008, at 08:36, WebObjects wrote: Hello, I was wondering, what is the best way to do the login of a user into the system. to keep track of the username and password on the Session, or somewhere else? We store the user object in a the session ivar and push it to the ERXThreadStora

Re: Obtain primary key early?

2008-10-05 Thread Guido Neitzer
On 05.10.2008, at 08:08, Ken Anderson wrote: No offense to all the wonder-ites, but I have a production system and not a lot of time to test/play around. Any other thoughts? Look at the code and implement it in your system. Btw: we do have some production systems here too and not a lot of t

best practice?

2008-10-05 Thread WebObjects
Hello, I was wondering, what is the best way to do the login of a user into the system. to keep track of the username and password on the Session, or somewhere else? also I was reading this info : http://wiki.objectstyle.org/confluence/display/WONDER/Using+a+custom+EOEditingContext+%28ERXEC

Re: Obtain primary key early?

2008-10-05 Thread Miguel Arroz
Hi! Steal the code? :) (as Mike would say, "buh!") Looks like a pretty simple method, just grab it from the Wonder source and use it in your project. Yours Miguel Arroz On 2008/10/05, at 15:08, Ken Anderson wrote: No offense to all the wonder-ites, but I have a production system a

Re: Obtain primary key early?

2008-10-05 Thread Petite Abeille
On Oct 5, 2008, at 3:33 PM, Ken Anderson wrote: I have a situation where I want to grab a number from the Oracle sequence early so that I can assign it to the EO myself. Perhaps something like: select sequence.nextval from dual http://www.psoug.org/reference/sequences.html Cheers, -- PA.

Re: Obtain primary key early?

2008-10-05 Thread Ken Anderson
No offense to all the wonder-ites, but I have a production system and not a lot of time to test/play around. Any other thoughts? On Oct 5, 2008, at 9:51 AM, Kieran Kelleher wrote: Wonder ... blah, blah, Wonder ERXGenericRecord.primaryKeyInTransaction() Wonder, etc. etc. HTH, Kieran

Re: Obtain primary key early?

2008-10-05 Thread Kieran Kelleher
Wonder ... blah, blah, Wonder ERXGenericRecord.primaryKeyInTransaction() Wonder, etc. etc. HTH, Kieran On Oct 5, 2008, at 9:33 AM, Ken Anderson wrote: All, I have a situation where I want to grab a number from the Oracle sequence early so that I can assign it to the EO myself. The

Obtain primary key early?

2008-10-05 Thread Ken Anderson
All, I have a situation where I want to grab a number from the Oracle sequence early so that I can assign it to the EO myself. The main motivation for doing this is so that I can set the value into a temporary table during commit that will be used in delete triggers to update an audit ta