// We should use IPC to update some portlets in the future instead of
UIWorkingWorkspace uiWorkingWS = uiPortalApp.getChild(UIWorkingWorkspace.class);
// TODO: Raise Portlet Event instead
uiWorkingWS.updatePortletsByName("PortalNavigationPortlet");
uiWorkingWS.updatePortletsByName("UserToolbarSitePortlet");
} else {
UIWorkingWorkspace uiWorkingWS = uiPortalApp.findFirstComponentOfType(UIWorkingWorkspace.class);
UIEditInlineWorkspace uiEditWS = uiWorkingWS.getChild(UIEditInlineWorkspace.class);
UIPortal editPortal = (UIPortal) uiEditWS.getUIComponent();
uiForm.invokeSetBindingBean(editPortal);