InputMask Doesn't work

Mobile UI Kit
Post Reply
phairon
Posts: 1
Joined: 01 May 2014, 20:25

03 Jun 2014, 14:40

Hi,

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="http://www.w3.org/1999/xhtml"
xmlns:h="http://java.sun.com/jsf/html"
xmlns:f="http://java.sun.com/jsf/core"
xmlns:p="http://primefaces.org/ui"
xmlns:pm="http://primefaces.org/mobile">

<f:view renderKitId="PRIMEFACES_MOBILE" />

...

<pm:page id="sortiePage">
<pm:header title="#{msg['sortie.entete']}" />
<pm:content>
<h:form id="sortieForm">
<p:messages id="messages" autoUpdate="true" styleClass="messageErreur"/>
<p:outputPanel id="sortieFormPanel">
<pm:field>
<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']}" />
</pm:field>

...

Any idea?

Thanks.

ryoung1
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.

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

peter_k
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:
Image

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

Input looks like this:
Image

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?

spadovan
Posts: 122
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

FabioRCandia
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
  • Information
  • Who is online

    Users browsing this forum: Yahoo [Bot] and 2 guests