Primefaces InputMask optional digits
<p>I'm working on a small Project using <code>Primefaces</code>.</p>

<p>I'm trying to display value from my database with special formation
I store a String in my database which Looks like this <code>40;99;1;0;0;12</code>
These are six different numbers seperated with a <code>;</code>and they have a range between 0-99.</p>

<p>I want to display this value in an InputMask to make sure that the user doesn't forget the <code>;</code>.
Now I have a problem with the format.</p>

<p>I'm using this </p>

<p><code>&lt;p:inputMask id="myID" placeholder="Value" value="#{myClass.value}" mask="9?9;99;99;99;99;99"/&gt;</code></p>

<p>I'm trying to say that the mask contains six "fields" for a number input and each field can contain a number between 1-99.</p>

<p>The problem is if the user writes the input as this <code>30;10;0_;0_;0_;4_</code>Primefaces converts it to <code>30;10;00;04;__;_</code></p>

<p>Is there a good way to let the mask know that it can be a number with one or two digits?
Or is there a way to say, if input has just one digit put a 0 first</p>