Isma90
Isma90

Reputation: 661

How to set a format to in <h:inputtext> live

I have a <h:form> where I inset this value 175669663 in to the <h:inputtext>, but I want to assign the format ##.###.###-# or #.###.###-#, to unselect the <h:inputtext> change to 17.566.966-3.

Upvotes: 0

Views: 1031

Answers (1)

Tiago Vieira Dos Santos
Tiago Vieira Dos Santos

Reputation: 1004

you can use the primefaces inputMask component to this validation with a mask like you want.

Look some examples in this official showcase: Primefaces Input Mask

Upvotes: 2

Related Questions