[
http://issues.apache.org/jira/browse/MYFACES-1006?page=comments#action_12361870
]
Guy Bashan commented on MYFACES-1006:
-------------------------------------
You understand right.
I can do it with value bindings, but then you can ask why also support multiple
row/column classes and not use valueBindings.
Anyway, I solved it easily with java script by doing:
rowOnMouseOver="selectedRow = this.className;
this.className='reportRowOver'"
rowOnMouseOut="this.className = selectedRow"
I know it is a weak "improvement" . . . ;-)
Thanks for you reply.
> Datatable do not support multple o
> ----------------------------------
>
> Key: MYFACES-1006
> URL: http://issues.apache.org/jira/browse/MYFACES-1006
> Project: MyFaces
> Type: Improvement
> Reporter: Guy Bashan
>
> Data tables usually have the following look and feel:
> 1) rows are light/dark.
> 2) when moving over a row it is shown selected.
> For showing rows light/dark it is possible to do:
> rowClasses="reportRowLight,reportRowDark"
> For showing selected row it is possible to do:
> rowOnMouseOver="this.className='reportRowOver'"
> rowOnMouseOut="this.className='reportRowLight'"
> but, it is not possible restoring the previous color of the row before the
> selection. since: rowOnMouseOut property do not support multiple rows. for
> example, something like this:
> rowOnMouseOver="this.className='reportRowOver'"
> rowOnMouseOut="this.className='reportRowLight',this.className='reportRowLight'"
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira