|
Hi all,
I have a pretty peculiar problem regarding the display column tag. I would want to change the style class of a column while it is being rendered. For example, if I have a column which is of type say 'Double' I would like to change the style class of that particular column from 'report' to 'reportNum'.
I actually tried the functionality of both the column decorator and the table decorator as it was mentioned in the documentation. I could easily do it using the column decorator by writing the following method.
public String getColumnName() { StringBuffer buf = new StringBuffer(); buf.append("<span class=\"reportsNum\" "); buf.append(((MyObject) getCurrentRowObject()).getColumnName()); buf.append("</span>"); return buf.toString(); }
The solution worked fine until I started seeing the exported files, and noticed that the export pdf, excel etc were also giving me the span tag which I had mentioned in the decorator.
I am not sure If I am missing something here in the configuration document. There are a ways to set the property of the table, but is there a way to set the property of the column dynamically. Thanks in adv,
|

