Пример #1
0
  @Override
  protected void onBeforeRenderWhenDisabled(final String disableReason) {
    super.onBeforeRenderWhenDisabled(disableReason);
    final EntityModel entityLinkModel = (EntityModel) entityLink.getModel();
    entityLinkModel.toViewMode();

    entityLink.syncVisibilityAndUsability();
  }
Пример #2
0
 @Override
 protected void onBeforeRenderWhenViewMode() {
   super.onBeforeRenderWhenViewMode();
   entityLink.setEnabled(true);
   entityLink.syncVisibilityAndUsability();
 }