Reputation: 661
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
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