input-mask

Input mask for numeric and decimal

蹲街弑〆低调 提交于 2019-12-03 01:55:54
I realized a software application management invoicing after having tested my program I noticed the following error: my table in sqlserver contains: price numeric (6,2) the user of my program enter price as 555.00 is good. but when he put 555555 it's error, so I need to specify the mask where the mantissa is optional 0 to 999 and the decimal part is programmable 2 or 3 according to choice of the user, I'm using JQuery Masked input plugin and I have not found good regular expression, please, help, I'm working with jsp / servlet. You can use jquery numeric for numbers. The current version does

Escape Number 9 in p:inputmask

↘锁芯ラ 提交于 2019-12-01 19:06:09
问题 I want to prepend +90 (Turkey's phone code) to every phone numbers a user enters. For that reason I am using a mask like this: <p:inputMask id="homePhone" value="#{personController.model.homePhone}" mask="+90 (999) 999-9999" size="20" converter="converterPhone" /> But displays it like this: +_0 (___) ___-____ However, I want it to look like this: +90 (___) ___-____ <!-- pay attention to 9 --> Is there a way to escape the first 9 like this: mask="+\90 (999) 999-9999" ? Thank you all... 回答1: