(I've moved this thread to the myfaces-users list, due to it being
identified as a Tomahawk bug)
Heh, Mike do you ever get tired of answering my questions? ;)
I looked through MyFaces JIRA, and the closest issue I found was
TOMAHAWK-523. The only difference is that they were trying to use EL
based off the "var" attribute, whereas I am attempting to use the
"rowIndexVar". However, this might be the same issue.
That issue is marked "patch available", but there are no files attached.
I see that one of your comments on the thread indicates that the patch
provided wasn't sufficient... There were also user comments there about
it affecting non-facelets, or being fixed in the trunk - both statements
which are definately not true for my issue.
How involved do you think the fix for this would be? Could it be coded
in a couple of hours? Should I attempt to write a patch to fix this?
[1] http://issues.apache.org/jira/browse/TOMAHAWK-523
Mike Kienenberger wrote:
I think there are already bug reports open on this for Tomahawk, but
you should make sure that this is the case, opening one if necessary.
My guess it that the jsp tag handler for t:dataTable is not using
standard pass-through code to initialize the rowStyleClass attribute
on the t:dataTable component.
The fix would be to rewrite the component and tag handler so that the
tag handler isn't doing anything beyond passing the arguments through
unchanged.
On 2/15/07, Jeff Bischoff <[EMAIL PROTECTED]> wrote:
Greetings,
There is a CSS trick with the Tomahawk extended dataTable that allows
the selected row to be highlighted (or some similar things). It works
great in JSP, and has been passed around on the myfaces mailing list and
wiki for some time. The trick goes something like this:
<t:dataTable id="TheDataTable"
...
rowClasses="oddRow,evenRow"
rowStyleClass="#{dataTableBacking.selectedRowIndex == rowIndex ?
'highlightRow' : null}"
rowIndexVar="rowIndex"
.../>
Unfortunately, when I recently converted my application from JSP to
Facelets, this trick no longer works. (Fortunately, this is one of the
only things that stopped working!) I have heard from other users on the
myfaces mailing list who also can't get this to work under facelets.
Apparently, the "rowIndex" variable that t:dataTable creates can't be
resolved in the rowStyleClass expression, even though it works for
components who are children of the table.
Any idea why this would be different under Facelets? I am thinking of
opening a JIRA issue on myfaces project, since this is their custom
component, but wanted to bounce for ideas here first. Any suggested
workarounds?
Regards,
Jeff Bischoff
Kenneth L Kurz & Associates, Inc.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]