我正在为我的学校的实验室办公室建立一个在线时间表,我可以访问我的学校数据库,该数据库存储特定班级的某段时间(即: Chemestry 101-周一-10:00至13:00)。
因此,我需要在当前学术期间的每周加载包含类的名称、日期和时间的事件(Chemestry 101-周一-10:00至13:00),然后将其显示在课程表上.The上,我唯一能想到的方法是计算当前学术期间的第一个星期一的日期,将该事件添加到课程表组件中,然后计算下一个星期一的日期,并将该事件添加到课程表组件中,直到学年结束,但这似乎很麻烦,unnecesary.So是我的问题。
我是否可以告诉primefaces在每周的同一天(学术期间)加载一个类(即“Chemestry 1010-周一-10:00至13:00"),而无需在我的managedBean上创建一个循环来计算每个类的具体日期?
Im使用PrimeFaces3.5和STS (弹簧工具套件3.4.0)
发布于 2014-06-08 14:49:02
你为什么不试试调度程序工作,
write a program which do the stuff with current date
suppose current date is 9 jun2 2014 which is Monday
in window machine schedule a tast to run that program on every Monday with time,
in linux create a crone job to run that program on every Monday with time,
if you want to do this stuff OS independent that
study Play Framework which will take care of schedule task and run the job on every Monday
below the reference of Play
在这里输入链接描述 http://www.playframework.com/documentation/1.1/jobs
https://stackoverflow.com/questions/24106852
复制相似问题