How to solve “Conversion Error setting value '2013-10-26' for 'null Converter'” in h:inputText with Date value?

前端 未结 3 889
萌比男神i
萌比男神i 2021-01-20 17:57

when I press the insert button, I get the error indicated on the title

Conversion Error setting value \'2013-10-26\' for \'null Converter\'

3条回答
  •  一整个雨季
    2021-01-20 18:39

    In Managed Bean You should use java.util.Date. and specify the converter. e.g.

    
    
    
    

    you can specify the pattern for DateTimeConverter also you can use dateStyle,timeStyle, type.

提交回复
热议问题