I use this :
<p:calendar id="popupCal" yearRange="c:c+1" lang="fr" required="true"
requiredMessage="Date obligatoire" readonlyInput="true"
navigator="true" pattern="dd-M-yyyy" locale="fr"
showOn="both" value="#{commandeMB.commande.dateCmd}"
mindate="#{commandeMB.todaysDate}" />
and as I wrote, i set readonyinput to true
I tested also readonly to true and both to true but no result, always the date can be changed
is it a bug ?
thank you in advane
If you want that user must not be able to change the value of the Calender Dates, just view it then use showOn="none"
and readonly="true"
in p:calender
attribute, I have used it and its working (I'm using Primefaces 5.0 hope it works on all versions) :
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With