日期格式包含dd/mm/yyyy hh:mm:ss
哪些可以使用
按钮以这种方式使用。但这提供了仅修改日期的选项(并且可能与时间一起。)<rich:calendar datePattern="dd/MM/yyyy HH:mm"
value="#{uCBController.uCBUnit2.ucbEsp.lastSD}"
但是我想要的是选择此按钮时,它应该仅显示时间进行选择和修改,并仅保存时间格式。
Create two <rich:inputNumberSlider>
components (one for picking the hours and one for picking the minutes). <rich:calendar>
doesn't support picking only the time.
<rich:inputNumberSpinner value="#{bean.hours}" minValue="0" maxValue="23" />
<rich:inputNumberSpinner value="#{bean.minutes}" minValue="0" maxValue="59" />
Then, in the managed bean, just create two properties with the correspoding accessors.
public class Bean {
private Integer hours;
private Integer minutes;
//getters, setters
}