[ http://jira.codehaus.org/browse/DISPL-551?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
fabrizio giustina resolved DISPL-551. ------------------------------------- Resolution: Fixed Fix Version/s: 1.2 writeHTMLData() is now protected in 1.2 > Facility to allow HTML table itself to be decorated > --------------------------------------------------- > > Key: DISPL-551 > URL: http://jira.codehaus.org/browse/DISPL-551 > Project: DisplayTag > Issue Type: Improvement > Affects Versions: 1.1 > Reporter: Peter Barber > Fix For: 1.2 > > > currently the banner is placed next to the table, > <span class="pagebanner">32,926 items found, displaying 1 to 1,000.</span> > <span class="pagelinks">[ First/ Prev] <strong>1</strong>, <a ....... > <table cellpadding="2" class="tablerule" cellspacing="1" > id="account.details-accountDetails"> > I wish to have a <div> in between the banner and the table start > so to have > <div id="tbl-container" style="height: 520px; overflow: auto"> > <table cellpadding="2" class="tablerule" cellspacing="1" > id="account.details-accountDetails"> > I though I would be able to override HTMLTableWriter.writeTableOpener(), to > insert some HTML before the <table...> tag > however the problem is that TableTag is hard coded to instantiate an instance > of HTMLTableWriter > private void writeHTMLData() throws JspException > { > JspWriter out = this.pageContext.getOut(); > String css = this.properties.getCssTable(); > if (StringUtils.isNotBlank(css)) > { > this.addClass(css); > } > // use HtmlTableWriter to write table > new HtmlTableWriter( > this.tableModel, > and this method is private, so there's no way to have another implementation > of TableWriterAdapter > could we make this method protected or use some kind of dependancy injection > to allow this class to be pluged in? -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.codehaus.org/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ------------------------------------------------------------------------------ _______________________________________________ displaytag-devel mailing list displaytag-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-devel