【发布时间】:2014-05-27 00:17:03
【问题描述】:
我的页面上有这个带有时间选择器的日历:
<p:calendar value="#{addTaskBacking.currentTask.deadline}" mode="inline"
pattern="dd-MM-yyyy HH:mm" mindate="01-09-2013 00:00"/>
当我设置模式时:dd-MM-yyyy 没有正确添加所有内容,但是当我更改为:dd-MM-yyyy HH:mm 时出现此错误:
j_idt10:j_idt12: '9-04-2014' 无法理解为日期和时间。
这是我设置内联模式的时候,我设置弹窗的时候就ok了。
我有 primefaces_v4.jar。我检查了这方面http://forum.primefaces.org/viewtopic.php?f=3&t=22982,但我找不到任何解决方案
编辑:
看起来所有依赖于p:calendar 的mode 属性。如果我有默认的popup 模式一切都很好(比如http://primefaces.org/showcase/ui/calendarTime.jsf 上的示例。但是当我更改为内联模式时,我得到了这个错误:
cal:inlineCal: '13-04-2014' could not be understood as a date and time. Example: 13-04-2014 15:16
【问题讨论】:
标签: jsf jsf-2 primefaces calendar datetimepicker