| Issue 51: | HtmlRenderer not usable without HtmlHeader in taglib | |
| 1 person starred this issue and may be notified of changes. | Back to list |
When using taglib there is the possibility of specifying a HeaderRenderer
instead of the default.
Here is the the code in HtmlColumnTag class method getColumn :
HeaderEditor headerEditor = getColumnHeaderEditor(facadeTag);
if (headerEditor != null) {
column.getHeaderRenderer().setHeaderEditor(headerEditor);
}
The getColumnHeaderEditory returns null if nothing was specified in taglib
and the headerEditory is therefore never injected in the custom
HeaderRenderer giving a NullPointerException when trying to use it.
Or maybe I misunderstood the way to use all this...
Arthur CLEMENT
Nov 9, 2007
I did look at the source implementations. Ok the reason I want to change to headerRenderer is because the default implementation renders td tags and I want th tags. Actually you might want to change the implementation to render th tags. I had to do this to comply with the css I was given to render the table. Anyway, I had already done what you suggested in your comment in the first place but then I had to write my own HeaderEditor to handle the sort arrows a bit differently. Thanks for the quick replies. Jmesa is an excellent library. I have more suggestions about pluggable editors and renderers but this is probably not the place. Arthur
Nov 24, 2007
The renderers and editors will now use the defaults if nothing is specified. This presented itself as a great opportunity to refactor those methods and make them much more simply and robust at the same time. Also, the renderer element can now be specified as a td or a th element. The default is a td element and can be overridden in the preferences file. html.column.header.renderer.element=td
Status:
Fixed
|
Labels: -Priority-Medium Priority-High