Board index JavaServer Faces General p:InputMask with p:Calendar combination

p:InputMask with p:Calendar combination

Components, Ajax Framework, Utilities and More.


Posts: 11
Location: Thessaloniki, Greece

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


Posts: 15038
Location: Cybertron

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/
PrimeFaces Lead


Return to General