我的日程安排有问题。它没有显示事件的时间。如下图。我正在使用 primefaces3.0M4-snapshot 和 jsf2.0
以下是代码
在豆
private ScheduleModel eventModel;
public ForNewSchedule()
{
System.out.println("KSHITITJ");
Calendar c1=Calendar.getInstance();
c1.set(2012, 04, 01, 05, 05, 05);
Calendar c2=Calendar.getInstance();
c2.set(2012, 04, 01, 06, 06, 06);
Calendar c3=Calendar.getInstance();
c3.set(2012, 04, 04, 10, 10, 10);
Calendar c4=Calendar.getInstance();
c4.set(2012, 04, 04, 11, 11, 11);
eventModel = new DefaultScheduleModel();
eventModel.addEvent(new DefaultScheduleEvent("Champions League Match", c1.getTime(), c2.getTime()));
eventModel.addEvent(new DefaultScheduleEvent("Birthday Party",c3.getTime(),c4.getTime()));
System.out.println("KSHITITJ-----");
}
在页面上
<h:form>
<p:schedule value="#{forNewSchedule.eventModel}" />
</h:form>
谢谢,