如何在 primefaces 日历中禁用键盘输入?
这是我的代码:
<p:calendar id="regDate" value="#{pc_Program.pendingRep.regDate}"
pattern="dd/MM/yyyy" tabindex="3" navigator="true"
required="true" maxdate="a"
requiredMessage="Please Select Date Of Registration">
<p:ajax event="keyup" update="errcalender" />
<p:ajax event="dateSelect" update="errcalender" />
<p:ajax event="blur" update="errcalender"></p:ajax>
<p:ajax listener="#{pc_Program.addBtnEnble}"
update="addButton" /></p:calendar>
<p:message id="errcalender" for="regDate" display="text"></p:message>