Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Andrew Lindesay
Hello Lachlan; I have a map of invalidData in my super generic record. The controller sets/unsets the invalid value if validation failed. If it's set, then valueForKey returns the invalid value if not null. This approach won't take care of situations where data is stored in non-EO's or st

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Lachlan Deck
On 17/07/2008, at 6:11 AM, Andrew Lindesay wrote: I store the bad value in "validationFailedWithException(..)" and then when the key-path hits the component controller again during the "appendToResponse(..)" phase, it regurgitates the bad value to the element (WOTextField usually) rather th

Re: 403 Forbidden ([Was] Re: App instance dies on startup)

2008-07-16 Thread Lachlan Deck
Hi Rams, Look for topic 'Embedding WOFrameworks' here: http://wiki.objectstyle.org/confluence/display/WOL/Tutorials On 17/07/2008, at 3:48 AM, Rams wrote: I sent this almost two hours ago and it seems to have failed to deliver, so I'm resending the message. Please pardon if it is a duplic

Re: Not a wocomponent?

2008-07-16 Thread Chuck Hill
NSLog.out.appendln("Measure is of class " + _NSUtilities.classWithName("Measure").getCannonicalName()); That will get you the fully qualified class name. Chuck On Jul 16, 2008, at 5:58 PM, James Cicenia wrote: What fix do you have? I can't seem to locate the offending class/jar. Thanks J

Re: javaeoutil / bulkmover and friends.. Deep copy?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 4:34 PM, Joe Little wrote: I was wondering if the various bulk migration utilities between multiple databases correctly do deep copies, maintaining relationships with new primary keys, etc. javaeotutil just does a data copy so you will get PK conflicts. I am not sure w

Re: Question about reusing model entities

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 5:37 PM, Chris Meyer wrote: Thanks. This looks useful. Do you do something similar with the DB connection? I've now got a model in my framework and a model in my application. Some of the entities in the framework are generic and can optionally be subclassed (User); ot

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
Thanks Daryl! I am going to be away until the 28th. Hopefully someone else can verify the fixes. Chuck On Jul 16, 2008, at 6:49 PM, Daryl Lee wrote: We'll post a nightly build of 5.4.3 with these fixes as soon as we can. These are quick fixes will definitely be in it. Please try out t

Re: What is "error while removing bottom of undo stack"

2008-07-16 Thread Chuck Hill
No. Any background on this? Does it happen often? Could it be caused by manually calling terminate() on the session? CHUCK On Jul 16, 2008, at 6:28 PM, Q wrote: Anyone know what causes this? java.lang.IllegalStateException: error while removing bottom of undo stack at com.webobjects.

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Daryl Lee
We'll post a nightly build of 5.4.3 with these fixes as soon as we can. These are quick fixes will definitely be in it. Please try out the nightly builds! 6081320 6078428 On Jul 16, 2008, at 4:18 PM, Chuck Hill wrote: 6081327 6081320 In addition to the really nasty 6078428 :-) __

What is "error while removing bottom of undo stack"

2008-07-16 Thread Q
Anyone know what causes this? java.lang.IllegalStateException: error while removing bottom of undo stack at com.webobjects.foundation.NSUndoManager $_NSUndoStack._removeBottom(NSUndoManager.java:961) at com.webobjects.foundation.NSUndoManager $_NSUndoStack.push(NSUndoManager.java:1033) at

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Andrew Lindesay
I have patched-in a custom WODynamicElement and do this in the Application class to replace the broken WO 5.4.2 one... public WOElement dynamicElementWithName( String aName, NSDictionary someAssociations, WOElement

Re: Not a wocomponent?

2008-07-16 Thread James Cicenia
What fix do you have? I can't seem to locate the offending class/jar. Thanks James On Jul 16, 2008, at 3:32 PM, Mike Schrag wrote: java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. [2008-07-16 13:40:08 CDT] java.lang.IllegalArgumentExceptio

Re: Question about reusing model entities

2008-07-16 Thread Chris Meyer
Thanks. This looks useful. Do you do something similar with the DB connection? I've now got a model in my framework and a model in my application. Some of the entities in the framework are generic and can optionally be subclassed (User); others are unlikely to be subclassed (UserLogEntry).

javaeoutil / bulkmover and friends.. Deep copy?

2008-07-16 Thread Joe Little
I was wondering if the various bulk migration utilities between multiple databases correctly do deep copies, maintaining relationships with new primary keys, etc. I have a production DB that has been regularly renamed on a yearly basis to start fresh. I'd like to merge them into one now, retaining

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
Hi David, 6081327 6081320 In addition to the really nasty 6078428 :-) Thanks, Chuck On Jul 16, 2008, at 4:09 PM, David den Boer wrote: How about bug reports with simple reductions, and I can have a look at them ASAIC (as soon as I can)? On Jul 16, 2008, at 4:00 PM, Chuck Hill wrote:

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread David den Boer
How about bug reports with simple reductions, and I can have a look at them ASAIC (as soon as I can)? On Jul 16, 2008, at 4:00 PM, Chuck Hill wrote: On Jul 16, 2008, at 10:19 AM, Guido Neitzer wrote: On 16.07.2008, at 11:14, Chuck Hill wrote: Did you try the "we are all happy citizens"-s

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 10:19 AM, Guido Neitzer wrote: On 16.07.2008, at 11:14, Chuck Hill wrote: Did you try the "we are all happy citizens"-setting for encoding? er.extensions.ERXApplication.DefaultEncoding=UTF-8 That helped for us, when we had problems with a file upload in that form. Ther

Re: Not a wocomponent?

2008-07-16 Thread James Cicenia
my sentiments exactly... sure doesn't jump out at me which one is the culprit. -j- On Jul 16, 2008, at 3:32 PM, Mike Schrag wrote: java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. [2008-07-16 13:40:08 CDT] java.lang.IllegalArgumentExcepti

Re: Question about reusing model entities

2008-07-16 Thread Chris Meyer
And what about adding additional relationships specific to the application to the User entity? Name it GenericUser (or whatever) in the framework. Subclass GenericUser as User in the app model and add whatever you need. Done. Great! It sounds like I'm on the right track. So how does WO h

Re: Not a wocomponent?

2008-07-16 Thread Mike Schrag
java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. [2008-07-16 13:40:08 CDT] java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. I love this error ... Why the heck doesn't it tell you wtf the ful

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Andrew Lindesay
Hello Guido; I store the bad value in "validationFailedWithException(..)" and then when the key-path hits the component controller again during the "appendToResponse(..)" phase, it regurgitates the bad value to the element (WOTextField usually) rather than taking it from the EO. This way

[OT] Chuck is hiring: looking for a Sys Admin

2008-07-16 Thread Chuck Hill
Not really development related, but maybe you know someone? Thanks for looking, Chuck Opportunity Global Village Consulting is growing and it is time to expand and renew our network and service infrastructure. We want you to take control of our infrastructure and plan, design and impleme

Re: Not a wocomponent?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 11:35 AM, James Cicenia wrote: Hello - In deployment and not in dev I am getting this weird error: : Exception occurred while handling request: java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. [2008-07-16 13:40:08 CDT]

Re: Question about reusing model entities

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 11:48 AM, Chris Meyer wrote: I find myself reusing some entities in multiple applications. In particular, many applications I'm writing have a user login model with User, UserLog, and other entitities. Right now for simplicity I'm just copying the EOModel entities and

Question about reusing model entities

2008-07-16 Thread Chris Meyer
I find myself reusing some entities in multiple applications. In particular, many applications I'm writing have a user login model with User, UserLog, and other entitities. Right now for simplicity I'm just copying the EOModel entities and Java subclasses to each new project, but this is qu

Not a wocomponent?

2008-07-16 Thread James Cicenia
Hello - In deployment and not in dev I am getting this weird error: : Exception occurred while handling request: java.lang.IllegalArgumentException: Class 'Measure' exists but is not a subclass of WOComponent. [2008-07-16 13:40:08 CDT] java.lang.IllegalArgumentException: Class 'Me

403 Forbidden ([Was] Re: App instance dies on startup)

2008-07-16 Thread Rams
I sent this almost two hours ago and it seems to have failed to deliver, so I'm resending the message. Please pardon if it is a duplicate. +++ Thanks for the quick response! I'm a bit confused. I was told earlier by more than one person on this list that in order to deploy a 5.3.3 app o

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Guido Neitzer
On 16.07.2008, at 11:14, Chuck Hill wrote: Did you try the "we are all happy citizens"-setting for encoding? er.extensions.ERXApplication.DefaultEncoding=UTF-8 That helped for us, when we had problems with a file upload in that form. There was also a bug in WO regarding comparison where it d

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 8:53 AM, Guido Neitzer wrote: On 15.07.2008, at 23:06, Chuck Hill wrote: Anywhere a non-perfect encoding set up? Possibly. I am not intentionally encoding anything on this app, pure American English only. :-) Wonder app? Wonder-ish but not full blown Wonder (as w

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 9:42 AM, Guido Neitzer wrote: On 16.07.2008, at 10:34, Chuck Hill wrote: I am guessing this is an attempt to deal with the problem of the input value getting discarded if it failed to format. It is reasonable to want to show the invalid value to the user with a messa

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Guido Neitzer
On 16.07.2008, at 10:34, Chuck Hill wrote: I am guessing this is an attempt to deal with the problem of the input value getting discarded if it failed to format. It is reasonable to want to show the invalid value to the user with a message and allow them to edit it into the correct format.

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
On Jul 16, 2008, at 8:50 AM, Guido Neitzer wrote: On 15.07.2008, at 23:14, Chuck Hill wrote: It looks like ERXWOTextField is similar to the 5.3.3 implementation, so if you are using Wonder with this patched in as WOTextField then you won't have problems. Is the problem just limited to WO

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Chuck Hill
On Jul 15, 2008, at 10:36 PM, Andrew Lindesay wrote: I am pretty sure this particular bug is limited to WOTextField. I have not tested, but I presume that WOTextArea may be afflicted, but is less likely to be a non-string value. It does not take a formatter so it won't have this problem.

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Guido Neitzer
On 15.07.2008, at 23:06, Chuck Hill wrote: Anywhere a non-perfect encoding set up? Possibly. I am not intentionally encoding anything on this app, pure American English only. :-) Wonder app? Did you try the "we are all happy citizens"-setting for encoding? er.extensions.ERXApplicatio

Re: What is the best way to handle invalid values from a WOTextField?

2008-07-16 Thread Guido Neitzer
On 15.07.2008, at 23:14, Chuck Hill wrote: It looks like ERXWOTextField is similar to the 5.3.3 implementation, so if you are using Wonder with this patched in as WOTextField then you won't have problems. Is the problem just limited to WOTextField? I think just WOTextField formats input.

Re: Deployment Error

2008-07-16 Thread Patrick Robinson
On Jul 16, 2008, at 5:52 AM, Q wrote: On 16/07/2008, at 6:57 PM, Thierry Kramis wrote: Hi All We're trying to deploy our first WO 5.4 application using Wonder on our Leopard server. The application wont start due to the following error: ... Caused by: java.lang.IllegalStateException: Main

Re: Deployment Error

2008-07-16 Thread Q
On 16/07/2008, at 6:57 PM, Thierry Kramis wrote: Hi All We're trying to deploy our first WO 5.4 application using Wonder on our Leopard server. The application wont start due to the following error: ... Caused by: java.lang.IllegalStateException: Main bundle 'Properties' file can't be

Re: Maven Optimism

2008-07-16 Thread Q
On 16/07/2008, at 1:42 PM, Mr.G Brown wrote: Maven builds would be a great additional capability for projects, I think. Many companies and projects use Maven, and so it can help WebObject projects fit in alongside with other projects. There are more projects with a maven project layout th

Deployment Error

2008-07-16 Thread Thierry Kramis
Hi All We're trying to deploy our first WO 5.4 application using Wonder on our Leopard server. The application wont start due to the following error: 2008-7-16 10:28:30 CEST] Initialized : er.extensions.ERXExtensions [2008-7-16 10:28:33 CEST] A fatal exception occurred: null [2008-7-16