Read and respond to this message at: https://sourceforge.net/forum/message.php?msg_id=4674977 By: savoym
I forgot to mention that my lead gave me an example that might work however when I tried the following code I encountered some problems. The problem I encountered was that the first 3 rows alternate correctly but when I come to the adding the additional row in my finishRow method the 4th row has the first <tr> with the correct color but then the added <tr> from my finishRow() changes color when it should be the same as the 4th row. What am I doing wrong? ANY HELP would be greatly appreciated. Regards. Here is my code to try and alternate colors within the finishRow() but it is not working: /** * Called at the end of a row to provide specific data at the end of a row. * * @return null is the default implementation */ @Override public String finishRow() { RequisitionSearchResults reqSearch = (RequisitionSearchResults)getCurrentRowObject(); if (reqSearch.getItemDescr() == null) { return null; }else { String addClass = null; if (this.getListIndex() % 2 == 0) addClass = "even"; else addClass = "odd"; return "<tr class=" + addClass + "><td></td><td colspan='11'><font size='2'>" + reqSearch.getItemDescr().trim() + "</font></td></tr>"; } } ______________________________________________________________________ You are receiving this email because you elected to monitor this forum. To stop monitoring this forum, login to SourceForge.net and visit: https://sourceforge.net/forum/unmonitor.php?forum_id=249317 ------------------------------------------------------------------------- SF.Net email is sponsored by: Check out the new SourceForge.net Marketplace. It's the best place to buy or sell services for just about anything Open Source. http://ad.doubleclick.net/clk;164216239;13503038;w?http://sf.net/marketplace _______________________________________________ displaytag-user mailing list displaytag-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/displaytag-user