• 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: limiting a textfield to numbers
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: limiting a textfield to numbers


  • Subject: Re: limiting a textfield to numbers
  • From: "Ruggentaler, JR" <email@hidden>
  • Date: Sat, 08 Nov 2014 03:36:58 +0000
  • Thread-topic: limiting a textfield to numbers

You could also try client side validation HTML 5 input validation. http://www.pageresource.com/html5/input-validation-tutorial/

JR

Sent from my iPhone

> On Nov 7, 2014, at 7:05 PM, Ramsey Gurley <email@hidden> wrote:
>
> If you always only want to allow number characters, then implement a validateKey() method for that key on your EO. This is easier.
>
> public String validateJobNumber(String value)
>
> Alternately, you can provide a custom component that does the validation at the component level. For example, you have a bunch of old jobs that already have strings outside your defined range and you cannot validate at the EO. This prevents new jobs from being entered with job numbers like “00-103A” or something, but also won’t throw errors on old jobs unless the user tries to edit them using the component.
>
>
>> On Nov 7, 2014, at 5:51 PM, Theodore Petrosky <email@hidden> wrote:
>>
>> How would you limit the characters typed into a WOTextField in a D2W app?
>>
>> I need a text field for a Job Number. It’s not really a number per se. Although I want to limit the characters typed to the number keys. So basically ascii 48 to 57 inclusive.
>>
>> Ted
>> _______________________________________________
>> 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
>
>
> _______________________________________________
> 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

 _______________________________________________
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: 
 >limiting a textfield to numbers (From: Theodore Petrosky <email@hidden>)
 >Re: limiting a textfield to numbers (From: Ramsey Gurley <email@hidden>)

  • Prev by Date: Re: limiting a textfield to numbers
  • Next by Date: Re: limiting a textfield to numbers
  • Previous by thread: Re: limiting a textfield to numbers
  • Next by thread: Re: limiting a textfield to numbers
  • Index(es):
    • Date
    • Thread