3 Replies Latest reply on Feb 3, 2009 9:34 AM by ilya_shaikovsky

    .rich-table table

    nimo22

      Hello,


      is the rich-table a wrapper for table?

      I want to use table-layout for my (rich)table. Where should I set it up?

      This way:

      .rich-table {
      
       /* Fixed-Layout-Algorithmus*/
       table-layout: fixed;
       width: 100%;
      }


      or that way:

      .rich-table table {

      /* Fixed-Layout-Algorithmus*/
      table-layout: fixed;
      width: 100%;
      }

        • 1. Re: .rich-table table
          ilya_shaikovsky

          yes rich-table is a class for the table itself. (Firebug could easily answer to this ;) )

          • 2. Re: .rich-table table
            nimo22

            thanks, yes, I know firebug:-)

            I was only a little confused about this:

            <rich:column width="10px">
            <f:facet name="header">
            <h:outputLabel value="name" />
            </f:facet>
            <h:outputText value ="#{_a.name}"/>
            </rich:column>

            When I set the column-width to 10 px then it minimize not to 10px but to the minimum width to need to leave the header-column visible. Is that normal.

            When I look at rich:extendedDataTable, all columns-width can be set to even 0 px..

            • 3. Re: .rich-table table
              ilya_shaikovsky

              it is normal for standard table without any special css applied or additional markup used. If you try with just pure HTML you'll see that the table stretches to the content if the width is lesser.