我的 DefaultScheduleEvent 创建如下:
DefaultScheduleEvent newResourceEvent = new DefaultScheduleEvent(reason, dteBeginOrWaitingItem, dteEndOrWaitingItem, orWaitinglist);
orWaitinglist
是一个对象,它包含值和更多的对象。
现在我如何在我的JSF
页面中访问这个对象。
Primefaces 演示显示您可以访问事件对象,如下所示。但是我怎样才能将对象的值orWaitinglist
放在p:inputText
-field 中。
<p:inputText id="title" value="#{scheduleController.event.data}" required="true"/>
DefaultScheduleEvent.java
public DefaultScheduleEvent(String title, Date start, Date end, Object data) {
this.title = title;
this.startDate = start;
this.endDate = end;
this.data = data;
}
public Object getData() {
return data;
}
public void setData(Object data) {
this.data = data;
}
调度控制器.java
public ScheduleEvent getEvent() {
return event;
}
public void setEvent(ScheduleEvent event) {
this.event = event;
}
或Waitinglist.java
public OrWaitinglist(BigDecimal WKey, Patients patients, OrBaseLists orBaseListsByWPriority, String WDescription, int WState, Date WDateInserted, Date WDateModified, String WModifiedBy, byte WPlannedType, boolean WCanBeScheduled) {
this.WKey = WKey;
this.patients = patients;
this.orBaseListsByWPriority = orBaseListsByWPriority;
this.WDescription = WDescription;
this.WState = WState;
this.WDateInserted = WDateInserted;
this.WDateModified = WDateModified;
this.WModifiedBy = WModifiedBy;
this.WPlannedType = WPlannedType;
this.WCanBeScheduled = WCanBeScheduled;
}