protected String getLoggingTag(String prefix) { String windowId = ""; if (dsContext != null) { FrameContext windowContext = dsContext.getFrameContext(); if (windowContext != null) { Frame frame = windowContext.getFrame(); if (frame != null) { windowId = ComponentsHelper.getFullFrameId(windowContext.getFrame()); } } } String tag = prefix + " " + id; if (StringUtils.isNotBlank(windowId)) tag = windowId + "@" + id; return tag; }
for (ParameterInfo info : queryParameters) { if (info.getType() == ParameterInfo.Type.COMPONENT) { Object value = dsContext.getFrameContext() == null ? null : dsContext.getFrameContext().getValue(info.getPath()); templateParams.put(compPrefix + info.getPath(), value); FrameContext windowContext = dsContext.getFrameContext(); if (windowContext != null) { String paramPrefix = ParameterInfo.Type.PARAM.getPrefix() + "$";
if (dsContext.getFrameContext() == null) { value = null; } else { Map<String, Object> windowParams = dsContext.getFrameContext().getParams(); value = windowParams.get(path); if (value == null && elements.length > 1) { if (dsContext.getFrameContext() != null) { value = dsContext.getFrameContext().getValue(path); if (value instanceof String && info.isCaseInsensitive()) { value = makeCaseInsensitive((String) value); componentValueListener = new ComponentValueListener(); try { dsContext.getFrameContext().addValueChangeListener(path, componentValueListener); } catch (Exception e) { Logger log = LoggerFactory.getLogger(AbstractCollectionDatasource.class);
public static void autoRefreshInvalid(CollectionDatasource datasource, boolean autoRefresh) { if (datasource instanceof PropertyDatasource) { return; } if (autoRefresh && Datasource.State.INVALID.equals(datasource.getState())) { DsContext dsContext = datasource.getDsContext(); if (dsContext == null || !WindowParams.DISABLE_AUTO_REFRESH.getBool(dsContext.getFrameContext())) { if (datasource instanceof CollectionDatasource.Suspendable) ((CollectionDatasource.Suspendable) datasource).refreshIfNotSuspended(); else datasource.refresh(); } } } }
dsContext.setFrameContext(getDsContext().getFrameContext()); setDsContext(dsContext);
dsContext.setFrameContext(getDsContext().getFrameContext()); setDsContext(dsContext);