List<FrameSelectItem> selectItems = new ArrayList<FrameSelectItem>();
IPageUserConfigManager pageUserConfigManager = (IPageUserConfigManager) ApsWebApplicationUtils.getBean(JpmyportalplusSystemConstants.PAGE_USER_CONFIG_MANAGER, pageContext);
try {
Integer currentFrame = (Integer) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_FRAME);
IPage currentPage = (IPage) reqCtx.getExtraParam(SystemConstants.EXTRAPAR_CURRENT_PAGE);
MyPortalPageModel pageModel = (MyPortalPageModel) currentPage.getModel();
Integer currentColumnId = pageModel.getFrameConfigs()[currentFrame].getColumn();
if (null == currentColumnId) {
return super.doStartTag();
}
Lang currentLang = (Lang) this.pageContext.getSession().getAttribute(JpmyportalplusSystemConstants.SESSIONPARAM_CURRENT_LANG);
Widget[] customShowletConfig = this.getCustomShowletConfig(currentPage, pageUserConfigManager);
Widget[] showletsToRender = pageUserConfigManager.getShowletsToRender(currentPage, customShowletConfig);
String voidShowletCode = pageUserConfigManager.getVoidShowlet().getCode();
for (int i = 0; i < showletsToRender.length; i++) {
Frame frame = pageModel.getFrameConfigs()[i];
Integer columnId = frame.getColumn();
if (frame.isLocked() || null == columnId || i == currentFrame.intValue()) continue;
Widget showlet = showletsToRender[i];
if (columnId.equals(currentColumnId)) {
if (showlet != null && !showlet.getType().getCode().equals(voidShowletCode)) {