Skip to content

Commit

Permalink
fix for MID-4876 - resource wizard, configuration step
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Sep 7, 2018
1 parent df41fa2 commit 9fdee67
Showing 1 changed file with 3 additions and 1 deletion.
Expand Up @@ -191,9 +191,11 @@ public boolean isVisible(){
childContainersSelectorPanel.setOutputMarkupId(true);
add(childContainersSelectorPanel);


Class<C> compileTimeClass = getModelObject().getContainerValue().getCompileTimeClass();
DropDownChoicePanel multivalueContainersList = new DropDownChoicePanel<>(ID_CHILD_CONTAINERS_LIST,
Model.of(pathsList.size() > 0 ? pathsList.get(0) : null), Model.ofList(pathsList),
new QNameIChoiceRenderer(getModelObject().getContainerValue().getValue().getClass().getSimpleName()));
new QNameIChoiceRenderer(compileTimeClass != null ? compileTimeClass.getSimpleName() : ""));
multivalueContainersList.setOutputMarkupId(true);
multivalueContainersList.getBaseFormComponent().add(new EmptyOnBlurAjaxFormUpdatingBehaviour());
childContainersSelectorPanel.add(multivalueContainersList);
Expand Down

0 comments on commit 9fdee67

Please sign in to comment.