title: validating and displaying decimal numbers in JSF 2.0
body: <p>I wonder how to validate an inputText text field and see if it matchs a decimal format.
  And also in the rendering time how to format that text field with a specific format</p>
  
  <p>I've done this :</p>
  
  <pre><code>    &lt;rich:column id="soldes_comptables"&gt;
                  &lt;f:facet name="header"&gt;
                      &lt;h:outputText value="Solde Comptable" /&gt;
                  &lt;/f:facet&gt;
                  &lt;h:inputText id="inputTextSC" value="#{file.soldes_comptables}"
                      label="Montant"
                      style="border-color:#F2F3F7;"
                      validatorMessage="The number must be decimal eg: 000.00"
                      &gt;
                      &lt;f:convertNumber pattern="#,###,##0.00"/&gt;
                      &lt;f:validateRegex pattern="^[0-9]+(\.[0-9]{1,2})?$"&gt;&lt;/f:validateRegex&gt;
                      &lt;rich:validator /&gt;
                  &lt;/h:inputText&gt;
                  &lt;rich:message for="inputTextSC"/&gt;
              &lt;/rich:column&gt;
  </code></pre>
  
  <p>but it's not working as i want :(. please help me</p>