• 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: Anyone have a phone number formatter?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Anyone have a phone number formatter?


  • Subject: Re: Anyone have a phone number formatter?
  • From: Kevin Windham <email@hidden>
  • Date: Fri, 30 Mar 2007 23:30:57 -0500


On Mar 29, 2007, at 6:58 PM, Kevin Windham wrote:
I am looking for info on how to create a formatter for phone numbers. I have surmised that I am supposed to use java.text.format in some fashion, but I am having trouble finding any examples.

Does anyone have any examples they can share, or can point me to some better info than the java docs on the class.


Just wanted to thank everyone for sending examples of how to create a formatter, especially to Dan whose phone formatter was very close to what I needed. A few minor modifications and everything worked great. The gist of the solution for future reference is to extend java.text.format and implement the parseObject method and the format method. The parseObject gets the data from the form field prior to it getting stored in the DB, and the format method is called to create the display string used when pulling data out of the DB.




_______________________________________________ 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: 
 >Anyone have a phone number formatter? (From: Kevin Windham <email@hidden>)

  • Prev by Date: Component rendered in java vs. via component
  • Next by Date: Problem in using WOConditional with in a WORepitition
  • Previous by thread: RE: Anyone have a phone number formatter?
  • Next by thread: WebObjects classloader fun.
  • Index(es):
    • Date
    • Thread