2 Replies Latest reply on Jun 20, 2013 2:13 PM by moacirrcosta

    How can I set this mask on rich:jQuery

    moacirrcosta

      Hi guys,

       

      I have been a problem with a rich:jQuery mask. I'm using richfaces-api-3.2.1.GA.

       

      I have that code:

      <h:inputText value="#{myBB.myEntity.myNumber}" id="field1" style="width: 80px; " >

           <rich:jQuery selector="#field1" query="mask('PC9999')" timing="onload" />

      </h:inputText>

       

      Notice that I'm using a mask "PC9999", but when I type "PC0123" and the focus get out the field the data is erased.

      How can I set this mask?

       

      Sorry me if I wrong anything wrong.

       

      Thanks for the answers.