mardi 1 septembre 2020

Primefaces Calendar not detecting correct pattern

I have a primeface calendar field something like this inside a repeater:

<p:repeat>
   <p:row>
     <p:repeat>
        <p:column>
<p: calendar id="cid" ...
pattern="dd/MM/yyyy"/>
</p:repeat>
   </p:row>
     </p:repeat>
        </p:column>

However for some reason during validation, it prompted an error:

"cid: '02/02/2020'could not be understood as a date and time". However the pattern is dd/MM/yyyy.

Any advice would greatly be appreciated!

Aucun commentaire:

Enregistrer un commentaire