Skip to content

Commit

Permalink
password fields fix
Browse files Browse the repository at this point in the history
  • Loading branch information
KaterynaHonchar committed Nov 26, 2019
1 parent 0839ff5 commit 94797fd
Showing 1 changed file with 6 additions and 6 deletions.
Expand Up @@ -31,16 +31,16 @@ public PasswordPropertyPanel(String id, IModel<PrismPropertyWrapper<ProtectedStr
protected Component createValuePanel(ListItem<PrismPropertyValueWrapper<ProtectedStringType>> item, GuiComponentFactory factory, ItemVisibilityHandler visibilityHandler) {

PasswordPanel passwordPanel;
if (!(getPageBase() instanceof PageUser)) {
passwordPanel = new PasswordPanel(ID_PASSWORD_PANEL, new ItemRealValueModel<>(item.getModel()),
getModelObject() != null && getModelObject().isReadOnly(), true);

} else {
// if (!(getPageBase() instanceof PageUser)) {
// passwordPanel = new PasswordPanel(ID_PASSWORD_PANEL, new ItemRealValueModel<>(item.getModel()),
// getModelObject() != null && getModelObject().isReadOnly(), getModelObject() == null);

// } else {
//
passwordPanel = new PasswordPanel(ID_PASSWORD_PANEL, new ItemRealValueModel<>(item.getModel()),
getModelObject() != null && getModelObject().isReadOnly(),
item.getModelObject() == null || item.getModelObject().getRealValue() == null );
}
// }
passwordPanel.setOutputMarkupId(true);
item.add(passwordPanel);
return passwordPanel;
Expand Down

0 comments on commit 94797fd

Please sign in to comment.