Feature Requests item #716857, was opened at 2003-04-07 11:13 Message generated for change (Comment added) made by mraible You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536616&aid=716857&group_id=73068
Category: None Group: None Status: Open Resolution: None >Priority: 3 Submitted By: Dariusz Wojtas (dwojtas) >Assigned to: Matt Raible (mraible) Summary: <display:row> tag implementation + RowDecorator Initial Comment: Examples of using the <display:row /> tag. Note that by default it will behave exactly the same as it did in previous displaytag implementations, that is rows will have <tr class="tableRowOdd"> ... <tr class="tableRowEven">... attributes set. Now it is possible to disable this behaviour, simply by <display:row styleClass=""/> --> always: <tr> or <display:row styleClass="myClass"/> --> always: <tr class="myClass"> Skipping this attribute, will give the default behaviour. Now it is also possible to set all other standard attributes, as defined by the W3C organisation. See http://www.w3.org/TR/html4/struct/tables.html#h- 11.2.5 for details. It is also possible to define and use self made row decorator. To do it, simply specify the 'decorator' property: <display:row decorator="pl.sagware.display.MyRowDecorator"> with some custom class name that extends the RowDecorator class. This decorator has access to all 'standard' decorator properties: - row number - current object - list of displayed objects ================================= 1) Example that that clears the styleClass attribute (setting this attribute disables setting it automatically to tableRowOdd/tableRowEven) and changes the row color on some mouse event. <display:row onmouseover="this.bgColor='#ffcc00';" onmouseout="this.bgColor='#FFFFFF';" styleClass=""/> 2) This example does not modify the default behaviour of the row style setting (tableRowOdd/tableRowEven is set as always before), and adds some action on 2 javascript events. <display:row onmouseover="window.status='Hi! I am here!';" onmouseout="window.status=''"/> Dariusz Wojtas ---------------------------------------------------------------------- >Comment By: Matt Raible (mraible) Date: 2004-01-02 12:30 Message: Logged In: YES user_id=226669 I need something like this in my project, and I currently can think of no way to change the <tr>'s class on a per-row basis. I'll see if I can patch the source and test it out. If I like it and it works for me, I'll review it with the dev team and hopefully we can add it. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=536616&aid=716857&group_id=73068 ------------------------------------------------------- This SF.net email is sponsored by: IBM Linux Tutorials. Become an expert in LINUX or just sharpen your skills. Sign up for IBM's Free Linux Tutorials. Learn everything from the bash shell to sys admin. Click now! http://ads.osdn.com/?ad_id=1278&alloc_id=3371&op=click _______________________________________________ displaytag-devel mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/displaytag-devel