PFUserDO assignee = data.getAssignee();
if (Hibernate.isInitialized(assignee) == false) {
assignee = userGroupCache.getUser(assignee.getId());
data.setAssignee(assignee);
}
final UserSelectPanel assigneeUserSelectPanel = new UserSelectPanel(fs.newChildId(), new PropertyModel<PFUserDO>(data, "assignee"),
parentPage, "assigneeId");
fs.add(assigneeUserSelectPanel);
assigneeUserSelectPanel.setRequired(true);
assigneeUserSelectPanel.init();
}
{
// Reporter
final FieldsetPanel fs = gridBuilder.newFieldset(ToDoDO.class, "reporter");
PFUserDO reporter = data.getReporter();
if (Hibernate.isInitialized(reporter) == false) {
reporter = userGroupCache.getUser(reporter.getId());
data.setReporter(reporter);
}
final UserSelectPanel reporterUserSelectPanel = new UserSelectPanel(fs.newChildId(), new PropertyModel<PFUserDO>(data, "reporter"),
parentPage, "reporterId");
fs.add(reporterUserSelectPanel);
reporterUserSelectPanel.init();
}
gridBuilder.newGridPanel();
{
// Task
final FieldsetPanel fs = gridBuilder.newFieldset(ToDoDO.class, "task");