Skip to content

Commit

Permalink
focus type field small change
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Mar 16, 2018
1 parent b96f231 commit 2c1f9b3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Expand Up @@ -43,7 +43,7 @@ public String getIdValue(QName object, int index) {

@Override
public QName getObject(String id, IModel<? extends List<? extends QName>> choices) {
if (id == null) {
if (id == null || id.trim().equals("")) {
return null;
}

Expand Down
Expand Up @@ -447,7 +447,7 @@ private Panel createTypedInputComponent(String id) {
List<QName> typesList = WebComponentUtil.createAbstractRoleTypeList();
typesList.remove(AbstractRoleType.COMPLEX_TYPE);
DropDownChoicePanel<QName> typePanel = new DropDownChoicePanel<QName>(id, new PropertyModel(getModel(), baseExpression),
Model.ofList(typesList), new QNameObjectTypeChoiceRenderer());
Model.ofList(typesList), new QNameObjectTypeChoiceRenderer(), true);
typePanel.getBaseFormComponent().add(new EmptyOnChangeAjaxFormUpdatingBehavior());
typePanel.setOutputMarkupId(true);
return typePanel;
Expand Down

0 comments on commit 2c1f9b3

Please sign in to comment.