需要将inputCalendar元素的值设置为当天。
|
我需要自动将我的inputCalendar元素的值设置为当前日期,但仍允许用户单击弹出日历以更改值。我正在使用的代码如下。
<t:inputCalendar id=\"dashDelivStartDateCal\" monthYearRowClass=\"yearMonthHeader\" weekRowClass=\"weekHeader\" popupButtonStyleClass=\"standard_bold\" currentDayCellClass=\"currentDayCell\" value=\"#{orderStatusBacking.dashDelivStartDate}\" renderAsPopup=\"true\" popupDateFormat=\"MM/dd/yyyy\" helpText=\"MM/DD/YYYY\">
<h:message for=\"dashDelivStartDateCal\" showDetail=\"true\"></h:message>
</t:inputCalendar>
先谢谢您的帮助。
没有找到相关结果
已邀请:
1 个回复
垫歌蝎降凤
来初始化
后面的值。您可以在Bean的构造函数中执行此操作。