2 Replies Latest reply on Nov 23, 2011 9:18 AM by hantsy

    How to set a pertent base width for the extendedDataTable

    hantsy

      I used rich:extendedDataTable (Richfaces 4.1 M4)in project, but it can not use a percent based width like Richfaces 3.3.

       

      I use firebug to dig the codes, it set a fixed width(100px) for it , Why?

        • 1. Re: How to set a pertent base width for the extendedDataTable
          pvito

          Hi, hantsy bai

           

          Use percent for width in column not supported now.

          See source code:

          org\richfaces\renderkit\ExtendedDataTableRenderer.java

           

               /**

               * @deprecated TODO Remove this method when width in relative units in columns will be implemented.

               * @param column

               * @return width

               */

              private String getColumnWidth(UIComponent column) {

                  String width = (String) column.getAttributes().get("width");

                  if (width == null || width.length() == 0 || width.indexOf("%") != -1) {

                      width = "100px";

                  }

                  return width;

              }

          • 2. Re: How to set a pertent base width for the extendedDataTable
            hantsy

            Thanks