UIPortalApplication uiPortalApp = (UIPortalApplication) prContext.getUIApplication();
uiPortalApp.addMessage(new ApplicationMessage("UINavigationManagement.msg.NavigationNotExistAnymore", null));
UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChildById(UIPortalApplication.UI_WORKING_WS_ID);
prContext.addUIComponentToUpdateByAjax(uiWorkingWS);
prContext.setFullRender(true);
UIPopupWindow uiPopup = uiForm.getParent();
uiPopup.setShow(false);
return;
}
UIFormSelectBox uiSelectBox = uiForm.findComponentById("priority");
int priority = Integer.parseInt(uiSelectBox.getValue());
// update navigation
NavigationService service = uiForm.getApplicationComponent(NavigationService.class);
NavigationContext ctx = service.loadNavigation(userNav.getKey());
ctx.setState(new NavigationState(priority));
service.saveNavigation(ctx);
UIPopupWindow uiPopup = uiForm.getParent();
uiPopup.setShow(false);
UIComponent opener = uiPopup.getParent();
ActionResponse response = event.getRequestContext().getResponse();
response.setEvent(new QName("NavigationChange"), null);
WebuiRequestContext pcontext = event.getRequestContext();