return getWidgetFullIdFromContext(null, pageContext);
}
public static String getWidgetFullIdFromContext(String widgetId, PageContext pageContext) throws JspException {
//Get widget id and view model from context
OutputData output =
(OutputData) pageContext.getRequest().getAttribute(
StandardServletServiceAdapterComponent.OUTPUT_DATA_REQUEST_ATTRIBUTE);
//Widget name given
if (widgetId != null)
return NameUtil.getFullName(output.getScope().toString(), widgetId);
//Current widget
else
return output.getScope().toString();
}