Skip to content

Commit

Permalink
default value for string resource model in list container popup
Browse files Browse the repository at this point in the history
  • Loading branch information
katkav committed Apr 27, 2020
1 parent 16add60 commit 2452eaf
Showing 1 changed file with 1 addition and 9 deletions.
Expand Up @@ -96,21 +96,13 @@ protected boolean getLabelVisible() {
};

};
// checkFormGroup.getCheck().add(new EmptyOnBlurAjaxFormUpdatingBehaviour());
checkFormGroup.getCheck().add(new EmptyOnChangeAjaxFormUpdatingBehavior());
// checkFormGroup.getCheck().add(new OnChangeAjaxBehavior() {
//
// @Override
// protected void onUpdate(AjaxRequestTarget target) {
// item.getModelObject().setSelected(!item.getModelObject().isSelected());
// }
// });
checkFormGroup.add(AttributeAppender.append("class", " checkbox-without-margin-bottom "));
checkFormGroup.setOutputMarkupId(true);
item.add(checkFormGroup);

String displayNameKey = item.getModelObject() != null ? item.getModelObject().getDisplayName() : "";
Label definition = new Label(ID_DEFINITION, new StringResourceModel(displayNameKey));
Label definition = new Label(ID_DEFINITION, new StringResourceModel(displayNameKey).setDefaultValue(displayNameKey));
definition.setOutputMarkupId(true);
item.add(definition);
}
Expand Down

0 comments on commit 2452eaf

Please sign in to comment.