public static class ViewStep4ActionListener extends EventListener<UIPageCreationWizard> {
public void execute(Event<UIPageCreationWizard> event) throws Exception {
UIPageCreationWizard uiWizard = event.getSource();
uiWizard.setShowActions(true);
UIPortalApplication uiPortalApp = uiWizard.getAncestorOfType(UIPortalApplication.class);
UIWorkingWorkspace uiWorkingWS = uiWizard.getAncestorOfType(UIWorkingWorkspace.class);
uiWorkingWS.findFirstComponentOfType(UIPortalComposer.class).setRendered(false);
if (uiWizard.isSelectedNodeExist()) {
uiPortalApp.addMessage(new ApplicationMessage("UIPageCreationWizard.msg.NameNotSame", null));
uiWizard.viewStep(FIRST_STEP);
uiWizard.updateWizardComponent();
return;
}
uiPortalApp.setModeState(UIPortalApplication.NORMAL_MODE);
uiWorkingWS.setRenderedChild(UIPortalApplication.UI_VIEWING_WS_ID);
PortalRequestContext pcontext = Util.getPortalRequestContext();
try {
UserNode newNode = uiWizard.saveData();
NodeURL nodeURL = pcontext.createURL(NodeURL.TYPE).setNode(newNode);
UIPortalToolPanel toolPanel = uiWorkingWS.findFirstComponentOfType(UIPortalToolPanel.class);
toolPanel.setUIComponent(null);
uiWizard.updateUIPortal(event);
pcontext.sendRedirect(nodeURL.toString());
} catch (NavigationServiceException ex) {
pcontext.getUIApplication().addMessage(