I have found a strange behavior in p:inputMask if it is located inside a row in p:dataTable. It doesn't apply the mask! I have posted a question on the forum, but obtained no answer. I wonder if anybody has met this problem and if there is any workaround for it?
Some code: Doesn't work:
<p:column header="Order">
<p:inputMask
id="printOrder"
required="false"
value="#{item.printOrder}"
mask="9" />
</p:column>
But the same code perfectly works outside dataTable. Primefaces 2.0.2.
p:dataTable
(usual suspects arep:commandLink
andp:commandButton
). From my experience sometimes it helped to useh:dataTable
instead (if thats an option for you since you don't have these nice features of a primefaces dataTable). If it is only for the skin, it's quite easy to let ah:dataTable
look like ap:dataTable
. – Matt Handy