p:InputMask with p:Calendar combination

Components, Ajax Framework, Utilities and More.
Post Reply
ppapapetrou
Posts: 11
Joined: 18 Jul 2011, 07:29
Location: Thessaloniki, Greece
Contact:

18 Jul 2011, 09:29

Is it possible to combine p:Calendar with InputMask mask property?
I know there is a pattern attribute in p:Calendar that defines the way date is being displayed in component but when the user tries to enter some date data he/she is allowed to enter whatever he/she wants.
Of course there is the option of validator but it woule be great if we could combine the input Mask functionality with p:Calendar
Primefaces 3.2.RC1 - Jboss 7.1.0 - Mojarra 2.1.5

Papapetrou P.Patroklos

User avatar
optimus.prime
Prime
Posts: 17328
Joined: 05 Jan 2009, 00:21
Location: Cybertron
Contact:

18 Jul 2011, 09:50

It's not possible. What you can do is to write a composite component with calendar and apply the raw jquery mask plugin.

http://digitalbush.com/projects/masked-input-plugin/

Post Reply
  • Information
  • Who is online

    Users browsing this forum: Bing [Bot], Google [Bot] and 11 guests