/** * @return the Dandelion {@link Context}. */ public Context getContext() { Context context = (Context) table.getTableConfiguration().getRequest() .getAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE); return context; }
/** * @return the Dandelion {@link Context}. */ public Context getContext() { Context context = (Context) table.getTableConfiguration().getRequest() .getAttribute(WebConstants.DANDELION_CONTEXT_ATTRIBUTE); return context; }
/** * Updates the current {@link HttpServletRequest} with the passed * {@link DatatableBundles}. * * @param bundle * The {@link DatatableBundles} to add. */ public void addBundle(DatatableBundles bundle) { AssetRequestContext.get(table.getTableConfiguration().getRequest()).addBundles(bundle); }
/** * Updates the current {@link HttpServletRequest} with the passed * {@link DatatableBundles}. * * @param bundle * The {@link DatatableBundles} to add. */ public void addBundle(DatatableBundles bundle) { AssetRequestContext.get(table.getTableConfiguration().getRequest()).addBundles(bundle); }
public void addBundleParameter(String assetName, String paramName, Object paramValue) { AssetRequestContext.get(table.getTableConfiguration().getRequest()).addParameter(assetName, paramName, paramValue); }
public void addBundleParameter(String assetName, String paramName, Object paramValue) { AssetRequestContext.get(table.getTableConfiguration().getRequest()).addParameter(assetName, paramName, paramValue); }
StringBuilder exportUrl = UrlUtils.getCurrentUri(tableConfiguration.getRequest()); UrlUtils.addParameter(exportUrl, ExportUtils.DDL_DT_REQUESTPARAM_EXPORT_TYPE, "f"); UrlUtils.addParameter(exportUrl, ExportUtils.DDL_DT_REQUESTPARAM_EXPORT_FORMAT, enabledFormat); tableConfiguration.getRequest(), tableConfiguration.getResponse()));
StringBuilder exportUrl = UrlUtils.getCurrentUri(tableConfiguration.getRequest()); UrlUtils.addParameter(exportUrl, ExportUtils.DDL_DT_REQUESTPARAM_EXPORT_TYPE, "f"); UrlUtils.addParameter(exportUrl, ExportUtils.DDL_DT_REQUESTPARAM_EXPORT_FORMAT, enabledFormat); tableConfiguration.getRequest(), tableConfiguration.getResponse()));
@Override public void setup(HtmlTable table) { AssetMapper assetMapper = new AssetMapper(getContext(), table.getTableConfiguration().getRequest()); HttpServletRequest request = table.getTableConfiguration().getRequest(); Set<AssetStorageUnit> assetsToInject = null;
@Override public void setup(HtmlTable table) { AssetMapper assetMapper = new AssetMapper(getContext(), table.getTableConfiguration().getRequest()); HttpServletRequest request = table.getTableConfiguration().getRequest(); Set<AssetStorageUnit> assetsToInject = null;