}
}
public static class ChangeNodeActionListener extends EventListener<UIWizardPageSetInfo> {
public void execute(Event<UIWizardPageSetInfo> event) throws Exception {
WebuiRequestContext context = event.getRequestContext();
UIWizardPageSetInfo pageSetInfo = event.getSource();
UIPageCreationWizard uiWizard = (UIPageCreationWizard) pageSetInfo.getAncestorOfType(UIPageCreationWizard.class);
String uri = context.getRequestParameter(OBJECTID);
UIPageNodeSelector uiPageNodeSelector = pageSetInfo.getChild(UIPageNodeSelector.class);
try {
uiPageNodeSelector.setSelectedURI(uri);
if (!uiPageNodeSelector.getSelectedNode().getURI().equals(uri)) {
context.getUIApplication().addMessage(new ApplicationMessage("UIWizardPageSetInfo.msg.node.deleted", null));
}
} catch (NavigationServiceException ex) {
context.getUIApplication().addMessage(
new ApplicationMessage("UIWizardPageSetInfo.msg.navigation.deleted", null));
uiWizard.createEvent("Abort", Phase.PROCESS, context).broadcast();
return;
}