You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@myfaces.apache.org by "Guy Bashan (JIRA)" <de...@myfaces.apache.org> on 2006/01/05 18:17:37 UTC
[jira] Created: (MYFACES-1006) Datatable do not support multple o
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
Re: [jira] Created: (MYFACES-1006) Datatable do not support multple
o
Posted by Mario Ivankovits <ma...@ops.co.at>.
Hi!
> For showing selected row it is possible to do:
> rowOnMouseOver="this.className='reportRowOver'"
> rowOnMouseOut="this.className='reportRowLight'"
>
what about
rowOnMouseOver="if (!this.oldClassName){this.oldClassName=this.className;} this.className='reportRowOver'"
rowOnMouseOut="this.className=this.oldClassName"
I havent tried it, but it should work.
Ciao,
Mario
[jira] Commented: (MYFACES-1006) Datatable do not support multple o
Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1006?page=comments#action_12361871 ]
Volker Weber commented on MYFACES-1006:
---------------------------------------
have you tried:
rowOnMouseOver="this.className=this.className + ' reportRowOver'"
rowOnMouseOut="this.className=this.className.replace('reportRowOver', '')"
> 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
[jira] Commented: (MYFACES-1006) Datatable do not support multple o
Posted by "Volker Weber (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1006?page=comments#action_12361869 ]
Volker Weber commented on MYFACES-1006:
---------------------------------------
have you tried:
rowOnMouseOver="this.className=this.className + ' reportRowOver'"
rowOnMouseOut="this.className=this.className.replace('reportRowOver', '")"
> 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
[jira] Commented: (MYFACES-1006) Datatable do not support multple o
Posted by "Mathias Broekelmann (JIRA)" <de...@myfaces.apache.org>.
[ http://issues.apache.org/jira/browse/MYFACES-1006?page=comments#action_12361867 ]
Mathias Broekelmann commented on MYFACES-1006:
----------------------------------------------
I´m not sure if I understand it right. But you can use value bindings or el expressions to solve this.
> 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
[jira] Commented: (MYFACES-1006) Datatable do not support multple o
Posted by "Guy Bashan (JIRA)" <de...@myfaces.apache.org>.
[ 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