Widget[] showlets = targetPage.getWidgets();
if (showlets.length>=frameId) {
Widget targetShowlet = targetPage.getWidgets()[frameId];
if (null != targetShowlet) {
reqCtx.addExtraParam(SystemConstants.EXTRAPAR_CURRENT_WIDGET, targetShowlet);
WidgetType WidgetType = targetShowlet.getType();
if (WidgetType.isLogic()) {
WidgetType = WidgetType.getParentType();
}
String pluginCode = WidgetType.getPluginCode();
boolean isPluginShowlet = (null != pluginCode && pluginCode.trim().length()>0);
StringBuffer jspPath = new StringBuffer("/WEB-INF/");
if (isPluginShowlet) {
jspPath.append("plugins/").append(pluginCode.trim()).append("/");
}
jspPath.append(ExecWidgetTag.WIDGET_LOCATION).append(WidgetType.getCode()).append(".jsp");
this.pageContext.include(jspPath.toString());
}
}
}