p:inputMask with type="number"

UI Components for JSF
Post Reply
faelzindc
Posts: 9
Joined: 14 Jan 2013, 11:25

10 May 2013, 12:04

Hi,
I need to put a type = "number" in p: InputMask, how can I do this?

Thanks! Rafael.

User avatar
Oleg
Expert Member
Posts: 3803
Joined: 02 Oct 2009, 09:41
Location: Germany, Black Forest

10 May 2013, 15:09

InputMask doesn't have the "type" attribute. Where did you see this? Use "mask" to allow only digits or pe:keyFilter from the PE.
PrimeFaces Cookbook (2. edition): http://ova2.github.io/primefaces-cookbook/ Learning Angular UI Development with PrimeNG: https://github.com/ova2/angular-develop ... th-primeng Blog: https://medium.com/@OlegVaraksin

faelzindc
Posts: 9
Joined: 14 Jan 2013, 11:25

15 May 2013, 19:35

Oleg wrote:InputMask doesn't have the "type" attribute. Where did you see this? Use "mask" to allow only digits or pe:keyFilter from the PE.
I have not seen. I would use type="number" because of mobile open number keyboard.
I'll have to stop using the autocomplete if there is a way to put the type.

Thank you.

Sampathl
Posts: 3
Joined: 21 Jun 2021, 15:11

19 Sep 2021, 16:50

It is there on the doc under Properties

https://primefaces.org/primeng/showcase/#/inputmask

But it is not working?
DOMException: Failed to execute 'setSelectionRange' on 'HTMLInputElement': The input element's type ('number') does not support selection.

stefanlucke
Posts: 1
Joined: 20 Sep 2021, 12:05

20 Sep 2021, 12:15

In PrimeFaces p:inputMask there is no "type" available.

You posted the PrimeNG documentation. So what do you use? :)
If you use PrimeNG then u just picked the wrong topic.

Post Reply

Return to “PrimeFaces”

  • Information