Feature Requests item #716857, was opened at 2003-04-07 19:13
Message generated for change (Attachment added) made by dwojtas
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: 5
Submitted By: Dariusz Wojtas (dwojtas)
Assigned to: Nobody/Anonymous (nobody)
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

----------------------------------------------------------------------

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

Reply via email to