简体   繁体   中英

Setting Column Width as Percent in RichFaces 4.x ExtendedDataTable

I have a problem with RichFaces 4: I can't give percentual value for column width in RichFaces 4, it is simply ignored. If I set the width as em or px, it works.

Here is what I tried for rich:column:

<rich:extendedDataTable ... >
  <rich:column width="20%" ...> <!-- width 20% is ignored -->
  </rich:column>
</<rich:extendedDataTable>

Thanks in advance.

Try using style attribute along with richface tag like <rich:column style="width:100%;"/> . This should work or else use columnClass or styleClass attribute and give the same style info in your css part.

If nothing works try giving the width size in pixels.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM