The TableDecorator is where we accomplished this with the help of Ed
from this mail list.  We did an override on the finishRow() within the
tableDecorator class already provided by DisplayTag as follows:

/**
         * 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() {
                SearchResults reqSearch = (SearchResults)
getCurrentRowObject();

                if (reqSearch.getItemDescr() != null) {
                        String addClass = null;
                        int indexValue = this.getViewIndex() - 1;
                        if (indexValue % 2 == 0) addClass = "even"; else
addClass = "odd";
                        return "\n<tr class=\"" + addClass +
"\"><td></td><td colspan=\"11\" class=\"desc\"><b>Desc: </b>" +
reqSearch.getItemDescr().trim() + "</td></tr>";
                }

                return null;
        }

And configured in SearchResults.css file that we created definitions for
the odd and even classes defined in the finishRow() method above.

HTH.



-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
SourceForge.net
Sent: Tuesday, May 27, 2008 5:26 AM
To: [EMAIL PROTECTED]
Subject: [displaytag-user] [displaytag - Help] BackGround Color for
pageBanner


Read and respond to this message at: 
https://sourceforge.net/forum/message.php?msg_id=4989275
By: harithagavva

Hi All,

I'm using display tags in my jsp.I dont understand how can I change the
background color of the page banner which displays the page links. Can
anyone pls help me out in this situation.

______________________________________________________________________
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=249318

------------------------------------------------------------------------
-
This SF.net email is sponsored by: Microsoft Defy all challenges.
Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user




The information contained in this message and any attachments is intended only 
for the use of the individual or entity to which it is addressed, and may 
contain information that is PRIVILEGED, CONFIDENTIAL, and exempt from 
disclosure under applicable law.  If you are not the intended recipient, you 
are prohibited from copying, distributing, or using the information.  Please 
contact the sender immediately by return e-mail and delete the original message 
from your system.

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
displaytag-user mailing list
displaytag-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/displaytag-user

Reply via email to