Right, after adding !important to the css class I can see the results. Will check this further. Thanks Bob, -Carlos
On Tue, Mar 27, 2012 at 4:14 AM, Bob Schellink <[email protected]> wrote: > Hi, > > Sounds like your CSS is not overriding the default values. > > You can check in your browser tools (ie Firebug) which CSS is applied > to your table row. > > Most likely you will have to specify a more precise CSS selector: > > #table table.tr.disabled { > ... > } > Also check with your browser tools if the disabled class have been set > on the row. > > regards > > Bob > > > On 27/03/2012 04:41 AM, Carlos Lobato wrote: > > Hi, > > > > I'm trying to implement this method this way: > > table = new ExportTable("table") { > > @Override > > public void addRowAttributes(Map attributes, Object row, int > rowIndex) { > > Prospect p = (Prospect) row; > > if (user.getInstitutionId() != p.getInstitutionId()) { > > attributes.put("class", "disabled"); > > } > > } > > }; > > Then, my disabled class is defined in a css inside my project like this: > > tr.disabled { > > background-color: #444; > > } > > However, I'm not seeing the change in color. I've also tried defining > the disabled class this way: > > disabled { > > background-color: #444; > > } > > to no avail. For testing purposes, attributes.put("class", "odd"); > renders the odd color for the table.css class I chose, Table.CLASS_BLUE2 in > this example. Where am I supposed to define this additional table row class? > > Cheers, > > -Carlos >
