myfaces-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Cedric Durmont (JIRA)" <>
Subject [jira] Commented: (TRINIDAD-1107) tr:table - scrolling of content
Date Fri, 10 Jul 2009 13:29:14 GMT


Cedric Durmont commented on TRINIDAD-1107:

The source code ( ) mentions an undocumented 'height' attribute.
What is intriguing is that it looks like this attribute triggers portions of code that make
the table scrollable, including the use of thead/tbody and numerous IE-centric hacks.
Maybe there's a good reason why this is a hidden/disabled feature, but otherwise it could
be a nice addition to Trinidad, with minimum effort :o)

I'm fairly sure this is too good to be true, but maybe someone could check it, just to be

Chosen extracts from :

  protected void findTypeConstants(FacesBean.Type type)
    _heightKey  = type.findKey("height");

   protected void renderTableContent(...)
       if ((height != null) && isIE(arc))
      writer.startElement("div", null);
      // IE in standards compliant mode needs the "width:100%" for the vertical
      // scroll bars to appear:
      writer.writeAttribute("style", "overflow:auto;overflow-x:hidden;width:100%;height:"+height,

> tr:table - scrolling of content
> -------------------------------
>                 Key: TRINIDAD-1107
>                 URL:
>             Project: MyFaces Trinidad
>          Issue Type: Improvement
>          Components: Components
>            Reporter: Gerhard Petracek
> if a table is too long and it comes to page scrollbars, you cannot see the header all
the time (e.g. after scrolling to the bottom of the table).
> so we need a scrollbar for the table body.

This message is automatically generated by JIRA.
You can reply to this email to add a comment to the issue online.

View raw message