• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: binding a form value to a NSTimestamp field
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: binding a form value to a NSTimestamp field


  • Subject: Re: binding a form value to a NSTimestamp field
  • From: WebObjects <email@hidden>
  • Date: Tue, 18 Apr 2006 23:14:10 -0700
  • Thread-topic: binding a form value to a NSTimestamp field

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@hidden wrote:

> 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 soon as it gets such a return.
>
> If your action method returns null, invokeAction will have to
> traverse the entire object graph before it knows that every element
> has returned null so it can return the current page as the default.
>
> Regards,
> Jerry
>
> On Apr 18, 2006, at 6:17 PM, WebObjects wrote:
>
>> 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 'stuff' and return null (same component)
>> displaying their mistake.  It's brilliant and I love it!  I do like
>> the
>> jscript below however, and will be cannibalizing it for other
>> purposes ;-)
>> (hope you don't mind).
>>
>> Elated, -Bill
>>
>>
>> on 4/18/06 14:55, Galen Rhodes at email@hidden wrote:
>>
>>> Is Javascript an option?  What about binding javascript event
>>> handlers to
>>> force them to enter only a properly formatted string.  Given an
>>> input field
>>> defined in HTML like this:
>>>
>>> <input type=text size=12 maxlength=12 onblur="handleDateBlur(this)"
>>> onfocus="handleDateFocus(this)" onkeypress="handleDateKeypress
>>> (event, this)">
>>>
>>> And Javascript like so...
>
> --
> __ Jerry W. Walker,
>     WebObjects Developer/Instructor for High Performance Industrial
> Strength Internet Enabled Systems
>
>      email@hidden
>      203 278-4085        office
>


 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

References: 
 >Re: binding a form value to a NSTimestamp field (From: "Jerry W. Walker" <email@hidden>)

  • Prev by Date: Re: binding a form value to a NSTimestamp field
  • Next by Date: Re: Java 1.5 & WO?
  • Previous by thread: Re: binding a form value to a NSTimestamp field
  • Next by thread: Re: Java 1.5 & WO?
  • Index(es):
    • Date
    • Thread