Skip to content

Commit

Permalink
merge fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Apr 17, 2018
1 parent e83a2c0 commit 5bb84dd
Showing 1 changed file with 0 additions and 17 deletions.
Expand Up @@ -454,23 +454,6 @@ private Panel createTypedInputComponent(String id) {
typePanel.setOutputMarkupId(true);
return typePanel;
}
if (ExpressionType.COMPLEX_TYPE.equals(valueType)) {
//it is expected that ExpressionType property is in the
// construction/association/outbound container
// so we will try to find ConstructionType
//TODO refactor to more pretty code
ConstructionType construction = new ConstructionType();
try {
ContainerValueWrapper cvw = ((PropertyWrapper)(getModel().getObject().getItem())).getContainerValue();
PrismContainerValue association = (PrismContainerValue)cvw.getContainer().getItem().getParent();
PrismContainer associationContainer = (PrismContainer)association.asContainerable().asPrismContainerValue().getParent();
PrismContainerValue<ConstructionType> constructionContainerValue = (PrismContainerValue<ConstructionType>) associationContainer.getParent();
construction = constructionContainerValue.asContainerable();
} catch (Exception ex){
LOGGER.error("Unable to find Construction container for expression property");
}
return new ExpressionValuePanel(id, new PropertyModel<ExpressionType>(getModel(), baseExpression), construction, getPageBase());
}

if (DOMUtil.XSD_DATETIME.equals(valueType)) {
panel = new DatePanel(id, new PropertyModel<XMLGregorianCalendar>(getModel(), baseExpression));
Expand Down

0 comments on commit 5bb84dd

Please sign in to comment.