How to do this in a data_table

I have an existing HTML table that allows highlight of rows when mouse passes over the row. The code that uses javascript events like onmouseout and onmouseover looks like this:
<tr nowrap valign="top" onmouseover="mover(this, '#cccccc')" onmouseout="mout(this, '#ffffff')">
<td style="font-size: 81%;">FAQs from ABC</td>
</tr>
<tr nowrap valign="top" onmouseover="mover(this, '#cccccc')" onmouseout="mout(this, '#ffffff')">
<td style="font-size: 81%;">FAQs from DEF</td>
</tr>
I don't see any tags in data_table that would allow me to do this. Is it possible to achieve these effects? How?
Vinay

It would be possible to attach onmouseover events to each of the individual components inside the <h:column> tags ... that would attach the event handlers to the individual components, but would not work as expected if the user were able to move the mouse in between components on a particular row.
One strategy you might consider is to write your own Renderer for the UIData component. As it happens, the "Repeater" demonstration component that is shipped with the beta release provides the source code for a very basic Renderer for UIData. It would be very easy to start from this as a base and add a row-level onmouseover attribute that would be able to render the event handling code on the <tr> element.
Besides satisfying the requirements for your use case, it would be a fun way to learn the main APIs needed to support your own custom markup widgets in the future :-).
Craig McClanahan

Similar Messages

Maybe you are looking for

  • Getting error while calling a subscreen in  module pool program

    HI  ALL,                      ACTUALLY I'M GETTING A SYNTAX ERROR WHILE I'M CALLING A SUBSCREEN                    IN A MODULE POOL PROGRAM IN PAI MODULE                    THE ERROR IS AS FOLLOW                        "." or "ID ... FIELD ..." expec

  • Creating a program assistant

    does anyone know how to take an animated flash character and transform it into 1 of those annoying office assistant's that program's like microsoft word uses?? i have the character already drawn out and ready to be integrated into a piece of software

  • Deactivate ade

    while downloading ebooks from the libary, I receive the error message check activation. How can I deactivate ade?

  • Suggestion: Add MacOS X to Technologies Page

    I was looking at the OTN technologies web page and thought it would be a good idea to add a Link to the MacOS X resource pages similar to what was done with Linux, Windows, and Java. I usually go to the technology page to get to OS specific resources

  • UME - ValuePermission

    Hello, I am playing around with checking permissions in web dynpro and ejb. My permissions that extend ActionPermission are working fine, but i dont know how to implement checks on permissions that extend ValuePermission. If i have a <b>class TestVal