create a new TableModel in the TableTag.java via a function call
----------------------------------------------------------------
Key: DISPL-356
URL: http://jira.codehaus.org/browse/DISPL-356
Project: DisplayTag
Type: Improvement
Components: Tag Library
Versions: 1.2, 1.1.1
Reporter: Alex Gerasimov
Fix For: 1.2, 1.1.1
I suggest to create a new TableModel in a slightly different way:
Instead of
this.tableModel = new TableModel(this.properties,
pageContext.getResponse().getCharacterEncoding(), pageContext)
(this row is repeated twice in the source code)
a new function should be used:
this.tableModel = getNewTableModel(this.properties,
pageContext.getResponse().getCharacterEncoding(), pageContext);
public TableModel getNewTableModel(TableProperties tableProperties, String
charEncoding, PageContext pageContext)
{
return (new TableModel(this.properties,
pageContext.getResponse().getCharacterEncoding(), pageContext));
}
This way TableModel class could be extended and used inside TableTag
--
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
[email protected]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel