/** * {@inheritDoc} */ @Override public boolean execute(IActionHandler actionHandler, Map<String, Object> context) { List<IDisplayableAction> actions = getDialogActions(context); context.put(ModalDialogAction.DIALOG_ACTIONS, actions); IViewDescriptor editViewDescriptor = getViewDescriptor(context); IView<E> dialogView = getViewFactory(context).createView(editViewDescriptor, actionHandler, getLocale(context)); String dialogTitle = getI18nName(getTranslationProvider(context), getLocale(context)); if (dialogTitle != null && dialogTitle.length() > 0) { context.put(ModalDialogAction.DIALOG_TITLE, dialogTitle); } context.put(ModalDialogAction.DIALOG_VIEW, dialogView); Object component = getComponentToEdit(context); IModelDescriptor modelDescriptor = getEditModelDescriptor(context); if (modelDescriptor == null && editViewDescriptor instanceof ICardViewDescriptor) { ICardViewDescriptor cvd = (ICardViewDescriptor) editViewDescriptor; String cardName = cvd.getCardNameForModel(component, getBackendController(context).getApplicationSession() .getSubject()); IViewDescriptor vd = cvd.getCardViewDescriptor(cardName); modelDescriptor = vd.getModelDescriptor(); } IValueConnector componentConnector = getBackendController(context).createModelConnector(ACTION_MODEL_NAME, modelDescriptor); componentConnector.setConnectorValue(component); getMvcBinder(context).bind(dialogView.getConnector(), componentConnector); return super.execute(actionHandler, context); }
if (accessGranted) { String cardName = ((ICardViewDescriptor) cardView.getDescriptor()) .getCardNameForModel(cardModel); if (cardName != null) { IView<ULCComponent> childCardView = cardView.getChild(cardName);
if (accessGranted) { String cardName = ((ICardViewDescriptor) cardView.getDescriptor()) .getCardNameForModel(cardModel); if (cardName != null) { IView<JComponent> childCardView = cardView.getChild(cardName);
if (accessGranted) { String cardName = ((ICardViewDescriptor) cardView.getDescriptor()) .getCardNameForModel(cardModel); if (cardName != null) { IView<SComponent> childCardView = cardView.getChild(cardName);