That works fine for Firefox (and possibly Safari--I don't have a Mac so can't check), but it won't work with Internet Explorer at all.  It probably will when version 7.0 comes out, but for anyone who wants a true cross-browser solution the only way to do it is with the onmouseover and onmouseout handlers.

-Matt

On 5/8/05, Sylvain Vieujot <[EMAIL PROTECTED]> wrote:
For the row highlighting, it's quite easy, and doesn't require any change to the component.

Look at this example : http://www.portage.com/portageWeb/forum/index-jsf.jsf

The corresponding table starts like this :

<h:dataTable id="data"
                var="post"
                value="#{postsList}"
                rows="30"
                styleClass="dataTable"
                rowClasses="odd,even"
              >

and the corresponding CSS :

table.dataTable tbody tr:hover{
background-color: #EFF8F0;
}

Sylvain.

On Thu, 2005-05-05 at 13:01 +0200, Martin Marinschek wrote:
the row highlighting is a thing much demanded by MyFaces users, we
have had that popping up several times - would be a great feature.

Martin

On 5/5/05, Martin Marinschek <[EMAIL PROTECTED] > wrote:
> You can achieve that kind of scrolling with "iframes".
>
> regards,
>
> Martin
>
> On 5/5/05, Sean Radford < [EMAIL PROTECTED]> wrote:
> > Sean Schofield wrote:
> >
> > >You can pretty much achieve all of this with the existing MyFaces
> > >components AFAIK. Not sure about the highlighting of the row as you
> > >mouseover but that is easy enough. The rest could be done with a
> > >combination of MyFacesComponents and adding a scoll area to the
> > >resulting HTML.
> > >
> > >
> > I was thinking (guessing) that the vertical scrolling with the headings
> > remaining could not be done with x:dataTable.
> >
> > >IMO there are a few things missing in x:dataTable, etc. that would be
> > >nice to have. I am going to try to get around to them soon. In the
> > >meantime, please see the new dataTable examples. They demonstrate
> > >some of the potential.
> > >
> > >sean
> > >
> > >
> > Cool. I'll get round to updating from source control as soon as I can.
> >
> > Thanks Sean,
> >
> > eh...
> >
> > Sean
> >
> > --
> > Dr. Sean Radford, MBBS, MSc
> > [EMAIL PROTECTED]
> > http://bladesys.demon.co.uk/
> >
> >
>




Reply via email to