Input Mask Currency

UI Components for JSF
Post Reply
mraz
Posts: 2
Joined: 18 Oct 2016, 14:20

18 Oct 2016, 17:53

How are you dealing with input mask currency and others?

For dates I solved as follows:

Code: Select all

<p:inputText type="date"... />
It generates a string.

My problem is with currency, I can't.
I want that the mobile shows only numbers, so I imagined something like:

Code: Select all

<p:inputText type="number"... />
Help me!!! :cry: :cry: :cry: :cry:

tandraschko
PrimeFaces Core Developer
Posts: 3979
Joined: 03 Dec 2010, 14:11
Location: Bavaria, DE
Contact:

19 Oct 2016, 16:56

we just generate html, so google.... http://www.w3schools.com/TAGS/att_input_type.asp
Thomas Andraschko

PrimeFaces | PrimeFaces Extensions

Apache Member | OpenWebBeans, DeltaSpike, MyFaces, BVal, TomEE

Sponsor me: https://github.com/sponsors/tandraschko
Blog: http://tandraschko.blogspot.de/
Twitter: https://twitter.com/TAndraschko

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: No registered users and 14 guests