voyent
Datatable columns  XML
Forum Index -> Components
Author Message
jerome

Joined: 14/Nov/2006 00:00:00
Messages: 16
Offline


Hello,

I am using Seam 1.1 Beta 2 (latest from CVS, running JBoss 4.0.5 with MyFaces 1.1.4) and Icefaces 1.5. I am using the Icefaces libraries bundled with the Seam/Icefaces integration example (the ones that come with D2DSeamFaceletViewHandler).

I have this:
Code:
<ice:dataTable id="someId" value="#{someList}" var="someData" rendered="#{someList.rowCount>0}"
 				sortColumn="#{myBean.columnSort}" sortAscending="#{myBean.ascendingSort}"
 				columnClasses="columnLeftAlign, columnLeftAlign, columnLeftAlign, columnLeftAlign, columnLeftAlign"
 				scrollable="#{myBean.scrollableListEnabled}" scrollHeight="#{myBean.scrollableListHeight}"
 				columnWidths="20%,20%,20%,20%,20%">


With columnWidths given in %, only datatable headers will be resized when maximizing browser window (or simply resizing). Datatable columns won't be resized.

Is this a known bug ? Is there a workaround ?

Regards,
Jerome.

PS: I am also using facelets.



philip.breau


Joined: 08/May/2006 00:00:00
Messages: 2989
Offline


Hi Jerome,

Yes, I see the same thing when using a scrollable dataTable with percentage columnWidths. I think it has something to do the fact that we render an extra 20px table cell in the header to take account of the scroller width in the data region. Apparently (and I'm definitely no HTML design guru) mixing the %'s and px's does strange things. I've logged a bug for this and we'll keep you updated.

Thanks,
Philip
[Thumb - percentDataTable.JPG]
 Filename percentDataTable.JPG [Disk] Download
 Description Image showing result of using percent column widths on a scrollable dataTable
 Filesize 50 Kbytes
 Downloaded:  198 time(s)


.
 
Forum Index -> Components
Go to:   
Powered by JForum 2.1.7ice © JForum Team