Wednesday, May 14, 2014

Disabling Input Date selection with keyboard

To disable input date selection with keyboard I followed the below blog written by Frank, it is really helpful!!!
disabling keyboard input on af:inputdate

All we are doing is to write a clientlistener inside the af:inputdate component:
<af:clientListener method="disableEntryOnDate" type="keyDown"/>

The above is calling the javascript which is cancelling the event, ultimately not allowing the user to type anything there:
function disableEntryOnDate(event){  
          event.cancel(); 


No comments:

Post a Comment