I'm building an application that required a functionality like excel sheets and I found at primefaces extensions a good choice to go.
Everything is going fine, but I have some fields that must be filled with 8 digits numeric codes and here I have a problem:
I set this colType as numeric to avoid user typing letters, but than every number typed that goes beyond 1000 is showed as "1k". Since all the numeric codes have 8 digits, I thought that applying the numericPattern="00000000" should resolve this.
Code: Select all
<pe:sheetcolumn headerText="#{app.label_code}" value="#{c.code}" colWidth="120"
sortBy="#{c.code}" filterBy="#{c.code}" colType="numeric" numericPattern="00000000"/>
Code: Select all
<pe:sheetcolumn headerText="#{app.label_code_ex}" value="#{c.codeEx}" colWidth="90"
sortBy="#{c.codeEx}" filterBy="#{c.codeEx}" colType="numeric" numericPattern="000"/>