Page 1 of 1

p:InputMask with p:Calendar combination

Posted: 18 Jul 2011, 09:29
by ppapapetrou
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

Re: p:InputMask with p:Calendar combination

Posted: 18 Jul 2011, 09:50
by cagatay.civici
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/