use of com.evolveum.midpoint.web.page.admin.valuePolicy.component.ValuePolicySummaryPanel in project midpoint by Evolveum.
the class PageValuePolicy method initLayout.
protected void initLayout() {
// TODO should be used if valuePolicyObject is edited
ValuePolicySummaryPanel summaryPanel = new ValuePolicySummaryPanel(ID_SUMMARY_PANEL, Model.of(valuePolicyModel.getObject().getObject().asObjectable()), WebComponentUtil.getSummaryPanelSpecification(ValuePolicyType.class, getCompiledGuiProfile()));
add(summaryPanel);
MidpointForm mainForm = new MidpointForm(ID_MAIN_FORM);
add(mainForm);
// List<ItemPath> itemPath = new ArrayList<>();
// itemPath.add(ItemPath.EMPTY_PATH);
// itemPath.add(prismContext.path(ValuePolicyType.F_STRING_POLICY));
// PrismPanel<ValuePolicyType> valuePolicyForm = new PrismPanel<>(ID_VALUE_POLICY_BASIC_DETAIL, new ContainerWrapperListFromObjectWrapperModel<ValuePolicyType,ValuePolicyType>(valuePolicyModel, itemPath),null, mainForm, null, this);
// mainForm.add(valuePolicyForm);
initTabs(mainForm);
initButtons(mainForm);
}
Aggregations