public static Standard.StandardWidgetInterface getContextWidgetFromContext(PageContext pageContext) throws JspException {
return getWidgetFromContext(null, pageContext);
}
public static Standard.StandardWidgetInterface getWidgetFromContext(String widgetId, PageContext pageContext) throws JspException {
UiWidgetContainer container =
(UiWidgetContainer) UiUtil.readAttribute(pageContext,
UiWidgetContainer.REQUEST_CONTEXT_KEY, PageContext.REQUEST_SCOPE);
String widgetFullId = getWidgetFullIdFromContext(widgetId, pageContext);