InputMask Doesn't work

UI Components for JSF
Post Reply
Posts: 1
Joined: 01 May 2014, 20:25

03 Jun 2014, 14:40


I did a mobile page with some input mask on it. When I display the page on browser, the input mask doesn't work! I did the same page in regular mode and the input mask are ok!

Here are my code :

<html xmlns=""

<f:view renderKitId="PRIMEFACES_MOBILE" />


<pm:page id="sortiePage">
<pm:header title="#{msg['sortie.entete']}" />
<h:form id="sortieForm">
<p:messages id="messages" autoUpdate="true" styleClass="messageErreur"/>
<p:outputPanel id="sortieFormPanel">
<p:outputLabel for="receptionnaire" style="font-weight:bold" value="#{msg['sortieretour.receptionnaire']}" />
<p:inputMask id="receptionnaire" value="#{sortieRetour.dataEntry.receptionnaire}" mask="99999" maxlength="5" size="13" required="true" requiredMessage="#{msg['validation.msg.receptionnaire']}" />


Any idea?


Posts: 8
Joined: 01 Mar 2013, 23:03

13 Jun 2014, 20:56

I am also having problems with inputMask and PFM5. I am able to enter any data in to the input field.

<p:outputLabel for="X1APS1HZ" value="X1 to PS1 Offset Horizontal" />
<p:inputMask id="X1APS1HZ" value="#{quoteBean.x1APS1HZ}" mask="9.999"/>

Posts: 1
Joined: 10 Sep 2015, 13:22

10 Sep 2015, 13:36

Same problem here.

I've got an inputMask:

Code: Select all

 <p:inputMask id="phoneNumber" mask="(999) 999-99-99" value="#{bean.field}"></p:inputMask>
In normal mode masked input works:

When switched to mobile mode with <f:view renderKitId="PRIMEFACES_MOBILE" />

Input looks like this:

Strangely, I haven't found much information about this issue, so I assume, there is a common workaround, I'm not familiar with.
Any help, please?

Posts: 130
Joined: 05 Jun 2013, 12:04

30 Jan 2017, 14:55

I've this problem too.....and i'm using latest version of pf (6.0.14)
Need help please
Primefaces 6.0.14, Mojorra 2.2.8, Wildfly 10.1.0, JDK 8

Posts: 1
Joined: 02 Jul 2017, 02:26

02 Jul 2017, 02:31

Same problem with InputMask PrimeNG in mobile, the PrimeNG's example page for InputMask doesn't work in mobile too.

Post Reply

Return to “PrimeFaces”

  • Information
  • Who is online

    Users browsing this forum: Baidu [Spider], tandraschko and 9 guests