@Override public void execute(Event<PushNavigationActionComponent> event) throws Exception { PushNavigationActionComponent actionComponent = event.getSource(); PushNavigationForm pushNavigationForm = actionComponent.createUIComponent(PushNavigationForm.class, null, null); pushNavigationForm.setSynchronizationService(SYNCHRONIZATION_SERVICE); pushNavigationForm.init(); org.exoplatform.wcm.webui.Utils.createPopupWindow( actionComponent, pushNavigationForm, PushNavigationForm.POPUP_WINDOW, true, 640); }
public static void addButtonToComponent(org.exoplatform.webui.core.UIContainer uicomponent) throws Exception { if (isShowButton()) { PushNavigationActionComponent pushNavigationActionComponent = uicomponent.getChild(PushNavigationActionComponent.class); if (pushNavigationActionComponent == null) { pushNavigationActionComponent = uicomponent.addChild(PushNavigationActionComponent.class, null, null); } pushNavigationActionComponent.setRendered(true); uicomponent.renderChild(PushNavigationActionComponent.class); pushNavigationActionComponent.setRendered(false); } }