cancel
Showing results for 
Search instead for 
Did you mean: 

CellRenderer for "setStyleForCell" ?

Former Member
0 Kudos

Hello to All,

my question is really simple. I like to render some cells in a specific design, depending on their values in a Table.

Example: all values above 50 getting TableCellStyle.GOODVALUE_MEDIUM all other get TableCellStyle.BADVALUE_MEDIUM

I thought that I could take a CellRenderer for this, but doesn´t work. But going to the JSP directly is a problem. Wherer I can get the Row and Collumns? Is there an easy code snippet that I could use?

Regards,

Marcus

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi again,

I have a Tree inside a table Cell and for this cell the "setStyleForCell" does not work. For all other cell

it works...

Regards, Christian

Former Member
0 Kudos

Hi Christian,

did you took the "object.setStyleForCell()" in a CellRender Class or in the JSP? I think that in the JSP it work, but not in a Cellrenderer.

Regards,

Marcus

Former Member
0 Kudos

Hi,

you are right! I made this experience too.Inside the JSP it works, in the CellRenderer not...

Fortunately I get along with this.

Regard, Christian

Former Member
0 Kudos

Hi,

I tried the same...

but I can't see any effects.

Anybody here who can help us?

Best Regards,

Christian

former_member182372
Active Contributor
0 Kudos

Hi Marcus,

what do mean under "doesn´t work"? TableView.setCellRenderer(ICellRenderer) works usually

fine.

Cheers Maxim R.