Jun 30, 2017

How to restrict inputText format in JSF

You can use prime faces 

<p:inputMask value="# {maskController.date}" mask="99/99/9999"/>

Or you use 

<f:convertNumber maxFractionDigits="2"
    groupingUsed="true"
    currencySymbol="$"
    maxIntegerDigits="4"
    type="currency"/>

Or you use 
RegEx Validator.