Re: binding a form value to a NSTimestamp field

2006-04-18 Thread WebObjects
Jerry, Thank you! This IS rocket science, I don't care what people may say. At this rate I'll be 65 years old before I master WO. :( The good news is that's 25 years from now. Have a wonderful evening, -Bill on 4/18/06 19:44, Jerry W. Walker at [EMAIL PROTECTED] wrote: > Hi, Bill, > > One

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Jerry W. Walker
Hi, Bill, One additional minor tweak I might suggest is to return context().page () rather than null to redisplay the current page. The invokeAction() method traverses the page template object graph looking for some dynamic element to respond with a non-null value. It stops traversing as s

Re: Java 1.5 & WO?

2006-04-18 Thread Galen Rhodes
I'm using it with WO 5.3 and it works great! On Apr 18, 2006, at 7:41 PM, Gavin Eadie wrote: At 6:38 AM -0500 12/12/05, Ken Anderson wrote: Has anyone tried Java 1.5 and WO? ... today's Java update makes Java 5 the default, so this question gains in significance ... Gav _

Re: Java 1.5 & WO?

2006-04-18 Thread Gavin Eadie
At 6:38 AM -0500 12/12/05, Ken Anderson wrote: Has anyone tried Java 1.5 and WO? ... today's Java update makes Java 5 the default, so this question gains in significance ... Gav ___ Do not post admin requests to the list. They will be ignored. Webob

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread WebObjects
Galen, I considered javascript first ­ thinking it would make things simpler, but as it turns out I LOVE the idea of overriding validationFailedWithException() - it works wonderfully! (simply) If the format of the value entered isn¹t exactly parsable as m/%d/%y, then it fails, I catch it, I do 's

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Andrew Lindesay
Hello; formatter in the session instead (same easy access), and then have I find this very useful as well -- it is easier to "globally control" specific formats and stuff if the date and time formatters are session-supplied. public void validationFailedWithException(Throwable t,

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Chuck Hill
On Apr 18, 2006, at 10:58 AM, WebObjects wrote: Chuck/Ken/All, Awesome recommendations. I realize that soon to follow will be arguments that exceptions should not be used as part of a designed flow control I'd be happy to debate them in this situation. And it is not so much catching e

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Chuck Hill
My bad, copy and paste too quickly. On Apr 18, 2006, at 11:15 AM, WebObjects wrote: I do run across this exception when using this more globalized formatting solution... [2006-04-18 11:09:47 PDT] java.lang.ClassCastException at com.webobjects.appserver._private.WOFormatterRepository.fo

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Ken Anderson
It should be 'formatter', not 'dateFormat'. On Apr 18, 2006, at 2:15 PM, WebObjects wrote: I do run across this exception when using this more globalized formatting solution... [2006-04-18 11:09:47 PDT] java.lang.ClassCastException at com.webobjects.appserver._private.WOFormatterReposit

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread WebObjects
I do run across this exception when using this more globalized formatting solution... [2006-04-18 11:09:47 PDT] java.lang.ClassCastException at com.webobjects.appserver._private.WOFormatterRepository.formatterForComponen t(WOFormatterRepository.java:102) at com.webobjects.appserver._pri

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread WebObjects
Chuck/Ken/All, Awesome recommendations. I realize that soon to follow will be arguments that exceptions should not be used as part of a designed flow control - but before they hit I'd like to say thanks, this is the solution I needed. -Bill on 4/18/06 10:53, Ken Anderson at [EMAIL PROTECTED] w

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Chuck Hill
I've never had to do that (which seems odd, but it has not happened so far), but that is an excellent point. Also for when users can set their own preferred format etc. Chuck On Apr 18, 2006, at 10:53 AM, Ken Anderson wrote: If you have users in multiple time zones, you could put the shar

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Ken Anderson
If you have users in multiple time zones, you could put the shared formatter in the session instead (same easy access), and then have it formatted to the user's timezone. Ken On Apr 18, 2006, at 1:46 PM, Chuck Hill wrote: I won't claim there is one best way. Here is how I have been handl

Re: binding a form value to a NSTimestamp field

2006-04-18 Thread Chuck Hill
I won't claim there is one best way. Here is how I have been handling these. First off, stop using dateFormat/numberFormat. They are easy to use, but as you have seen, no help at all in validating input. They are OK for output. So, what to use instead? There is a formatter binding al

binding a form value to a NSTimestamp field

2006-04-18 Thread WebObjects
There's always an easier and better way, so why not ask? (right?) I have a field in my form for collecting someone's date-of-birth. The value will store as an NSTimestamp in the dbase. public void setDtDob(NSTimestamp value) { takeStoredValueForKey(value, "dtDob"); } Q: What is

Re: exec sp_password using rawRowsForSQL

2006-04-18 Thread Patrick Middleton
On 13 Apr 2006, at 21:21, Jerry Haynes wrote: Has anyone successfully called sp_password on a Sybase database? Nothing is being returned back to theArray so I have no clue what the problem might be. private NSArray setSybasePassword(String eoModel, String masterPassword, String newPasswo

Re: Back Button Issues

2006-04-18 Thread Pierre Bernard
Have a look at the sample code (and comments) at http:// homepage.mac.com/i_love_my/code.html Pierre On Apr 17, 2006, at 8:34 PM, Jonathan Miller wrote: Hi, I'm following Apple's Guidelines on setting up server side page caching (i.e. setPageRefreshOn... && setPageCacheSize(int)) but it