aspose file tools*
The moose likes JSF and the fly likes how to format the price of a product specified in Indian Rupees Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » JSF
Bookmark "how to format the price of a product specified in Indian Rupees" Watch "how to format the price of a product specified in Indian Rupees" New topic
Author

how to format the price of a product specified in Indian Rupees

deepan thiagu
Greenhorn

Joined: May 15, 2007
Posts: 18
Hai everyone,

I need to format the price of a product specified in Indian Rupees.
The format used here in India is
Rs. 1,00,00,000 = 1 crore = 10 million = 10,000,000 (in the western format)

But when I try with f:convertNumber with type="currency" it always format like this 10,000,000

How can I achieve this?

The code I tried is as follows:

Can any one help me on this issue?

by
Thiagu.m
Venkat Sadasivam
Ranch Hand

Joined: May 10, 2008
Posts: 139
Add pattern attribute to convertNumber tag.

pattern="#,##,##,##,##0.00"
or
locale="en_GB"


“Any fool can write code that a computer can understand. Good programmers write code that humans can understand. ”<br>
-Martin Fowler
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: how to format the price of a product specified in Indian Rupees