The following comment has been added to this issue:
Author: fabrizio giustina
Created: Sat, 20 Nov 2004 7:57 AM
Body:
comment from DISPL-65
I have found an occasion when it would be helpful to be
able to specific my own CSS class for a row. What I
would like to see is an additional method in
TableDecorator:
public String getCSSClass();
If it returns null, the table tag should use the odd/even
class as appropriate. If it returns non-null, the table tag
should use the specified value.
The condition under which this applies is that I would
like to have a different style for the row representing
the current data being displayed.
Kevin Dean
[EMAIL PROTECTED]
===
comment from DISPL-132
The power of the decorator (as well as that of the
displaytag library) would be greatly enhanced if it would
be possible to control which style to use for TR and TD
styles.
My idea is that instead of automatically generating
<tr class="odd">
that a decorator method such as
public String getStyle(String curstyle)
which in the basic implementation would simply return
curstyle - overriders can examine which is the current
style (e.g., even or odd) and react on it
My requirement is to be able to set the background
color of a row baased on attributes of the current row
---------------------------------------------------------------------
View this comment:
http://jira.codehaus.org/browse/DISPL-110?page=comments#action_26977
---------------------------------------------------------------------
View the issue:
http://jira.codehaus.org/browse/DISPL-110
Here is an overview of the issue:
---------------------------------------------------------------------
Key: DISPL-110
Summary: Ability to highlight selected table row
Type: Wish
Status: Unassigned
Priority: Minor
Original Estimate: Unknown
Time Spent: Unknown
Remaining: Unknown
Project: DisplayTag
Components:
HTML Generation
Decorators
Versions:
1.0 RC1
Assignee:
Reporter: fabrizio giustina
Created: Sun, 14 Nov 2004 3:02 PM
Updated: Sat, 20 Nov 2004 7:57 AM
Description:
====
imported from sf tracker
id 810796
submitted by Bernard Farrell - bernfarr
http://sourceforge.net/support/tracker.php?aid=810796
====
It would be good to provide a means to highlight (via
CSS tags, ideally) the row on the table that has been
selected.
Ideally it would be good if the row selection (by clicking
on a given row) would automatically do this highlighting,
though I think that might be more interaction than would
be needed by most table users.
Also, I could see where developers would like facilities to
select an entire row, entire column, or a specific cell.
===
Date: 2004-03-26 10:52
Sender: knuterikb
Logged In: YES
user_id=364080
I suppose this could be implemented in a table decorator by
comparing the request parameters with the
paramId/paramProperty pair, and if they match, you could
change the style for the row in question.
- Maybe this functionality is also so generic that it should be
included in the default tag implementation, e.g. with a
styleClassSelectedRow="myStyleClass" parameter for the tag.
I would also like access to this kind of functionality, and will
look into it if I can spare the time...
===
Date: 2004-04-05 21:11
Sender: knuterikb
Logged In: YES
user_id=364080
I have just finished making this functionality as a patch that
we use in a project I am working on.
Ideally this functionality should maybe have a parameter by
it's own, but because I had little time available I had to
integrate it in the decorator parameter.
example:
<display:table .... decorator="highlightSelectedRow,param" >
The patch then matched the request parameters (already
clicked link) with the links that are produced by the cells in
the table. At the first match, the row in question is
highlighted. This means that if multiple rows link to the same
location, and not the first row containing this link is clicked,
the wrong row is selected. This is not a problem in my
application, but could be an issue for others...
...any way, I could send the patch to anyone interested.
---------------------------------------------------------------------
JIRA INFORMATION:
This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
http://jira.codehaus.org/secure/Administrators.jspa
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
-------------------------------------------------------
This SF.Net email is sponsored by: InterSystems CACHE
FREE OODBMS DOWNLOAD - A multidimensional database that combines
robust object and relational technologies, making it a perfect match
for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8
_______________________________________________
displaytag-devel mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/displaytag-devel