I have to bold a row on certain conditions. I am trying to use the addClass() method in the Table Decorator class but it is not working. It seems that the original grid class (from css) does not allow the bold to work. If i remove the grid class reference from the <display:table> It works but i loose other imp stuff like fonts on the col headers and odd even row highlights.
Any help would be highly appreciated table defn as in jsp ---------------------------- <display:table name="sessionScope.INCOME_RESULTS" id="currRowObj" export="true" sort="list" class="grid" requestURI="/income/incomeSearchResults" decorator="com.ibtco.cape.web.util.IncomeTableDecorator"> <display:setProperty name="paging.banner.placement" value="top" /> <display:setProperty name="paging.banner.items_name" value="records" /> <display:setProperty name="export.banner" value='<div class="exportlinks">Export: {0}</div>' /> <display:setProperty name="export.banner.placement" value="top" /> <display:setProperty name="export.types" value="excel" /> <display:setProperty name="export.excel" value="true" /> <display:setProperty name="export.rtf" value="false" /> <display:setProperty name="export.csv" value="false" /> <display:setProperty name="export.xml" value="false" /> <display:setProperty name="export.excel.filename" value="income.xls" /> <display:column property="Field-1" media="excel html" title="Sender" sortable="false" /> <display:column property="Field-2" media="excel html" title="Payer" sortable="false" /> <display:column media="excel html" title="New Income" property="addIncomeLink"></display:column> </display:table> Table decorator class addClass method --------------------------------------- public String addRowClass() { HashMap hm = (HashMap) getCurrentRowObject(); String relPymtId = (String)hm.get("Field-1"); if(relPymtId == null) { return "bold"; } return ""; } from style sheet ------------------- .bold { font-weight: bold; font-size:8pt; } /* * for search results table */ table.grid { background: #ffffff; border: 0px; padding: 0px; margin: 0px; text-align: center; border-collapse: collapse; border-spacing: 0px; width:760px; margin-left:10px; } table.grid tr.even { background: #eeeeee; } table.grid tr.odd { background: #ffffff; } table.grid caption { font-size:8pt; font-weight: bold; color: #000000; text-align: left; padding: 0 0 0px 0; border: 0; border-bottom: none; } table.grid tr.total { background: #cccccc; font-weight: bold; text-decoration: none border: 15px; border-color: #000000; } table.grid th { font:7pt arial; background: #cccccc; padding-left: 0px; padding-right: 0px; padding-top: 0px; padding-bottom: 0px; border: 0px solid white; top: 0px; position: relative; height:20px; } table.grid th a{ font: 7pt arial; color: #000000; text-decoration: none } table.grid th a:hover { color: #000000; text-decoration: underline } table.grid th a:unknown { color: #0000ff; text-decoration: none } table.grid td { font:7pt arial; color:#003366; padding-left:4px; padding-right:4px; padding-top:2px; padding-bottom:2px; border:0px solid white; cellspacing:0; cellpadding:0; } td.Decimal { text-align: right; } td.noticekeyData { text-align:left; } td.xspIDData { text-align:center } td.securityNameData { text-align:left; } td.securityTypeData { text-align:left; } td.xspStatus { text-align:center; } td.dateData { text-align:center; } td.trdData { text-align:center } td.domData { text-align:center; } td.receivableLinkData { text-align:left; } td.statusCdData { text-align:center; } td.postStatusData { text-align:center; } td.payDueData { text-align:center; } td.exTmsData { text-align:center; } td.factsCusipData { text-align:right; } td.rcdTmsData { text-align:center; } td.postDateData { text-align:right; } td.rcvCurrencyData { text-align:right; } td.td.rateData { text-align:right; } td.aggrBasisShresData { text-align:right; } td.factsLocationData { text-align:center; } td.divIncTypData { text-align:center; } td.typeData { text-align:center; } td.receivableAmountData { text-align:right; } td.domicileCountryData { text-align:right; } td.paymentLinkData { text-align:left; } td.paymentStatusCdData { text-align:center; } td.paymentPostStatusData { text-align:center; } td.paymentPayDueData { text-align:center; } td.paymentPostData { text-align:center; } td.paymentFactsCusipData { text-align:center; } td.paymentTypeData { text-align:center; } td.paymentAmountData { text-align:right; } td.paymentDomicileCountryData { text-align:center; } td.paymentDivIncTypData { text-align:center; } td.paymentPmtCurrencyData { text-align:right; } td.holdingLinkData { width:50px; text-align:right; } td.empty { color: #003366; font-family: arial, sans-serif; font-size: 10pt; font-weight: bold; text-align: center; padding-top: 12px; padding-bottom: 12px; } table.grid td a { text-decoration: none; color: #0000ff; } table.grid td a:visited { color: #0000ff; text-decoration: none; } table.grid td a:hover { color: #0099ff; text-decoration: none; } table.menu td a:active { text-decoration: none; color: #0000ff; } ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys - and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user