我使用Primefaces日曆組件來選擇日期和時間,但只有日期部分可用。我的代碼看起來與http://www.primefaces.org/showcase/ui/input/calendar.xhtml(例如「Datetime」)中的代碼幾乎相同,所以我無法弄清楚,我的情況出了什麼問題。任何建議?如何在Primefaces Calendar組件上顯示timepicker?
我的代碼:
<p:calendar value="#{item.dateFrom}" pattern="dd.MM.yyyy hh:mm" />
同樣的問題正在這裏討論:http://stackoverflow.com/questions/26382626/primefaces-5-p-calendar-does-not-display-the-option-to-select-time – 2014-10-16 10:50:51
我看到.. 。唯一的區別是我使用PrimeFaces 4.0,但在這種情況下可能並不重要。 – peterremec 2014-10-16 10:55:55