Search in sources :

Example 1 with SynchronizationReactionEditor

use of com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.SynchronizationReactionEditor in project midpoint by Evolveum.

the class SynchronizationStep method reactionEditPerformed.

private void reactionEditPerformed(AjaxRequestTarget target, SynchronizationReactionType reaction) {
    WebMarkupContainer newContainer = new SynchronizationReactionEditor(ID_THIRD_ROW_CONTAINER, new Model<>(reaction), this, parentPage);
    getThirdRowContainer().replaceWith(newContainer);
    for (SynchronizationActionType action : reaction.getAction()) {
        if (action.getRef() != null) {
            warn(getString("SynchronizationStep.message.unsupportedActionFormat"));
            break;
        }
    }
    resetSelections(target);
    syncDtoModel.getObject().setSelectedReaction(reaction);
    target.add(getThirdRowContainer(), get(ID_OBJECT_SYNC_EDITOR), getPageBase().getFeedbackPanel());
}
Also used : SynchronizationReactionEditor(com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.SynchronizationReactionEditor) WebMarkupContainer(org.apache.wicket.markup.html.WebMarkupContainer)

Aggregations

SynchronizationReactionEditor (com.evolveum.midpoint.web.component.wizard.resource.component.synchronization.SynchronizationReactionEditor)1 WebMarkupContainer (org.apache.wicket.markup.html.WebMarkupContainer)1