Planned maintenance is scheduled for the week of June 15th - the exact date and time will be announced soon.
See More Details
Ask Questions and Find Answers
Important:
Ask is now read-only. You can review any existing questions and answers, but not add anything new.
But - don't panic! While ask is no more, we've replaced it with discuss - the new Liferay Discussion Forum! Read more here here or just visit the site here:
discuss.liferay.com
RE: Breaking us phone numbers into parts
Is there any easy way of retrieving the three parts of a 10 digit US phone number?
Paypal requires the phone number t be sent as three separate parts when a USA number but I cannot work out how to do this from the lIferay API and use of phoneNumberFormats. For instance will liferay always store as (123)-456-7890 if 10 digits provided or 456-7890 if only 7?
If so I can easily process those strings!
Paypal requires the phone number t be sent as three separate parts when a USA number but I cannot work out how to do this from the lIferay API and use of phoneNumberFormats. For instance will liferay always store as (123)-456-7890 if 10 digits provided or 456-7890 if only 7?
If so I can easily process those strings!
Hi Dave,
I feel this is nothing to do with Liferay. You can split the string that is stored in the database as 10 digits and show them on the front-end the way you want using NumberFormat utility.
Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
I feel this is nothing to do with Liferay. You can split the string that is stored in the database as 10 digits and show them on the front-end the way you want using NumberFormat utility.
Yours truly,
Ahamed Hasan
Author, Liferay Portlet Cookbook
you might like this http://code.google.com/p/libphonenumber/
Community
Company
Feedback