PerShing2014 / jmesa

Automatically exported from code.google.com/p/jmesa
0 stars 0 forks source link

How to identify each row jmesa your own css-style #251

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I need to make sure that each row of the table jmesa stained with a 
different color, which depends on the bean, which is displayed in this 
line. 
To do this, I suppose shall be set for each bean in line css-style, which 
will build upon HtmlRowRenderer styles for odd and even, which appears 
now. 
For this, I in the preparation of collections for display on the bean 
jmesa create a map, where each bean put in line css-style, depending on 
the parameters of the bean fields. 
To send this card from my controller to HtmlRowRenderer, I need to 
override all classes with the suffix Tag, because I added a parameter in 
the class TableFacadeTag. In this setting, I convey this MAP properties of 
each line. 
I'm having problems with accurate parameter in through my jmesa to class, 
directly responsible for the installation css-styles - HtmlRowRenderer. In 
particular, because many getters classes that I need to override not have 
access modifiers, so you have to override all copy the code and set the 
access modifier public. This is an ugly solution, but I can not do 
differently with the current release jmesa. 
In addition, the code uses methods jmesa findAncestorClass, which is 
transmitted directly to the class (TableFacadeTag, for example). Since I 
redefined TableFacadeTag (my class extends TableFacadeTag), then I need to 
override all the methods in which the call findAncestorClass, to write his 
or her class name. 
You could do something to help me?

Original issue reported on code.google.com by stas.agarkov on 5 Mar 2010 at 6:58

GoogleCodeExporter commented 8 years ago

Original comment by jeff.johnston.mn@gmail.com on 13 Apr 2010 at 7:03