2 Replies Latest reply on Jun 22, 2009 9:50 AM by daxxy

    Need help with dataTable

    daxxy

      I have a dataTable with the following structure:

      <rich:dataTable>
      
       <rich:columnGroup>
       <rich:column>
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       </rich:columnGroup>
      
       <rich:columnGroup>
       <rich:column colspan="2">
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       </rich:columnGroup>
      
       <rich:columnGroup>
       <rich:column colspan="2">
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       </rich:columnGroup>
      
       <rich:subTable>
       <rich:columnGroup>
       <rich:column>
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       <rich:column>
       <h:outputText/>
       </rich:column>
       </rich:columnGroup>
       </rich:subTable>
      
      </rich:dataTable>
      


      I'm trying to figure out the best way to put a space between iterations of the data set, ie right after the subTable OR right before the first columnGroup. I would also like to put a space before the subTable. I've played around spacers, and separators, and CSS elements, etc. etc. and I haven't found anything really satisfactory.

      Any suggestions?

      TDR

        • 1. Re: Need help with dataTable
          ilya_shaikovsky

          I could suggest just write the prototype of the table you need in html from the beginning and then implement this using dataTable. In other case it's not really simple to get what you want to achieve.

          • 2. Re: Need help with dataTable
            daxxy

            I have been working on this awhile and came to the conclusion that a4j:repeat worked the best with html tags.

            However, I really want to use dataTable component because I can't get dataScroller to work with a4j:repeat.

            The best I could do was insert a blank line and use some skin color as the background for that line.

            TDR