如何在jsf/myfaces中创建指定时间段的日历?是否可以?
我正在准备应用程序,用户可以在指定时间内预订房间。我想向用户显示一个日历,他可以在其中选择预订的开始和结束日期,但我也想标记房间已预订的日期。可以使用 jsf/myfaces 吗?
I`m preparing application where user can book a room for specified period. I want to show user a calendar where he will be able to select start and end date of his reservation, but i also want to markup the days in which the room has already been reserved. Is it possible using jsf/myfaces?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
可以直接使用一张现成的rich faces,为什么要重新发明轮子
You can directly use one ready made in rich faces, why to re invent wheel
只需使用冰面,即可直接使用现成的日历。
<冰:selectInputDate id =“fromDateId”renderMonthAsDropdown =“true”renderYearAsDropdown =“true”值=“#{slowMovingSalesOrderAction.fromDate}”标题=“#{msgs['page.selectInputDate.popup.title']}”renderAsPopup =“ true" tabindex="1">
Just Use a Ice Faces so you can directly use a ready made calendar.
< ice:selectInputDate id="fromDateId" renderMonthAsDropdown="true" renderYearAsDropdown="true" value="#{slowMovingSalesOrderAction.fromDate}" title="#{msgs['page.selectInputDate.popup.title']}" renderAsPopup="true" tabindex="1">