public void processRender(WebuiRequestContext context) throws Exception {
UIPortalApplication uiPortalApp = Util.getUIPortalApplication();
int portalMode = uiPortalApp.getModeState();
if (portalMode != UIPortalApplication.NORMAL_MODE) {
UITabPane uiTabPane = this.getChild(UITabPane.class);
UIComponent uiComponent = uiTabPane.getChildById(uiTabPane.getSelectedTabId());
if (uiComponent instanceof UIApplicationList) {
if (portalMode == UIPortalApplication.APP_VIEW_EDIT_MODE) {
Util.showComponentEditInViewMode(UIPortlet.class);
} else {
uiPortalApp.setModeState(UIPortalApplication.APP_BLOCK_EDIT_MODE);