currency input mask

UI Components for JSF
Post Reply
jim.webguru
Posts: 40
Joined: 31 Aug 2011, 05:25

09 Sep 2011, 07:22

Hello,

I was wondering if someone can recommend a solution to providing an input mask for currency without a force for every character in the mask. I am basically trying to force the user to enter only numbers and at least one number. Then the field would auto format to represent the right format. The user enters 9 and the value in the text field becomes 9.00 or they enter 1234 and the value becomes 1,234.00. I know there are converters for after save and the input mask, but I guess I'm looking for something a little more flexible and real-time.

Thank You.
Jim

cagatay.civici
Prime
Posts: 18616
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

09 Sep 2011, 16:35

This is not sth inputMask can do at the moment, it only allows mask with fixed length.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 63 guests