Saturday 15 August 2015

Primefaces calendar restricted not work correctly -



Primefaces calendar restricted not work correctly -

p: calendar not work correctly if after selecting date in restricted range can type in text box , alter date outside range.

<p:calendar value="#{addfacturamb.facturautilnew.fechaemision}" mindate="#{administrarmb.fechainicio}" maxdate="#{administrarmb.fechafin}" id="popupbuttoncal1" showon="button" required="true" locale="es" effect="show" navigator="true"/>

from described <p:calendar> mindate , maxdate attributes working correctly. limit date can selected on calendar pop up.

if don't want user alter date text box have few options stop this.

set calendar input text box read only. <p:calendar readonlyinput="true" /> change calendar mode inline <p:calendar mode="inline" /> there no input text box.

primefaces

No comments:

Post a Comment