@Override @SuppressWarnings("unchecked") public int doEndTag() throws JspException { // At this point, all setters have been called and the staging // configuration map should have been filled with user configuration // The user configuration can now be applied to the default // configuration this.table.getTableConfiguration().getOptions().putAll(this.stagingOptions); // Once all configuration are merged, they can be processed OptionUtils.processOptions(this.table.getTableConfiguration().getOptions(), this.request); // The table is being exported if (ExportUtils.isTableBeingExported(this.request, this.table)) { return setupExport(); } // The table must be generated and displayed else { if (request.getAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES) == null) { List<HtmlTable> htmlTables = new ArrayList<HtmlTable>(); htmlTables.add(table); request.setAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES, htmlTables); } else { List<HtmlTable> htmlTables = (List<HtmlTable>) request .getAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES); htmlTables.add(table); } // ConfigUtils.storeTableInRequest(this.request, this.table); return setupHtmlGeneration(); } }
@Override @SuppressWarnings("unchecked") public int doEndTag() throws JspException { // At this point, all setters have been called and the staging // configuration map should have been filled with user configuration // The user configuration can now be applied to the default // configuration this.table.getTableConfiguration().getOptions().putAll(this.stagingOptions); // Once all configuration are merged, they can be processed OptionUtils.processOptions(this.table.getTableConfiguration().getOptions(), this.request); // The table is being exported if (ExportUtils.isTableBeingExported(this.request, this.table)) { return setupExport(); } // The table must be generated and displayed else { if (request.getAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES) == null) { List<HtmlTable> htmlTables = new ArrayList<HtmlTable>(); htmlTables.add(table); request.setAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES, htmlTables); } else { List<HtmlTable> htmlTables = (List<HtmlTable>) request .getAttribute(DatatableComponent.DDL_DT_REQUESTATTR_TABLES); htmlTables.add(table); } // ConfigUtils.storeTableInRequest(this.request, this.table); return setupHtmlGeneration(); } }
OptionUtils.processOptions(htmlTable.getTableConfiguration().getOptions(), request);
/** * <p> * Adds a header column to the last head row when using a DOM source. * </p> * * @param content * Contents of the <code>th</code> cell. * @throws JspException */ private void addDomHeaderColumn(String content) throws JspException { TableTag parent = (TableTag) findAncestorWithClass(this, TableTag.class); if (content != null) { this.headerColumn.setContent(new StringBuilder(content)); } // At this point, all setters have been called and both the staging // configuration map and staging extension map should have been filled // with user configuration // The user configuration can now be applied to the default // configuration this.headerColumn.getColumnConfiguration().getOptions().putAll(this.stagingOptions); this.headerColumn.getColumnConfiguration().getStagingExtension().putAll(this.stagingExtensions); // Once all configuration are merged, they can be processed OptionUtils.processOptions(this.headerColumn.getColumnConfiguration().getOptions(), this.request); parent.getTable().getLastHeaderRow().addColumn(this.headerColumn); }
/** * <p> * Adds a header column to the last head row when using a DOM source. * </p> * * @param content * Contents of the <code>th</code> cell. * @throws JspException */ private void addDomHeaderColumn(String content) throws JspException { TableTag parent = (TableTag) findAncestorWithClass(this, TableTag.class); if (content != null) { this.headerColumn.setContent(new StringBuilder(content)); } // At this point, all setters have been called and both the staging // configuration map and staging extension map should have been filled // with user configuration // The user configuration can now be applied to the default // configuration this.headerColumn.getColumnConfiguration().getOptions().putAll(this.stagingOptions); this.headerColumn.getColumnConfiguration().getStagingExtension().putAll(this.stagingExtensions); // Once all configuration are merged, they can be processed OptionUtils.processOptions(this.headerColumn.getColumnConfiguration().getOptions(), this.request); parent.getTable().getLastHeaderRow().addColumn(this.headerColumn); }
OptionUtils.processOptions(this.headerColumn.getColumnConfiguration().getOptions(), this.request);
OptionUtils.processOptions(this.headerColumn.getColumnConfiguration().getOptions(), this.request);
OptionUtils.processOptions(headerColumn.getColumnConfiguration().getOptions(), request);