3 Replies Latest reply on Jul 22, 2008 5:59 AM by ilya_shaikovsky

    datagrid problem

      My datagrid has 4 columns with 8 elements, can we layout the datagrid as follow

      x x x x
      x x x x

        • 1. Re: datagrid problem

          Sorry, the exact layout is

          x x x x
          s x x x x

          where s is empty cell

          • 2. Re: datagrid problem
            daniel.soneira

            If you don't HAVE to use the dataGrid you could maybe look into
            t:panelGrid / t:panelGroup [Tomahawk components].

            t:panelGroup allows the attribute colspan which you could use for the last element in the first row.

            or simply use an empty cell at the end of the first row as well.

            code would look something like this:

            <t:panelGrid cols="5">
             <h:outputText value="1.1"/>
             <h:outputText value="1.2"/>
             <h:outputText value="1.3"/>
             <t:panelGroup colspan="2">
             <h:outputText value="1.4"/>
             </t:panelGroup>
             <rich:spacer/> <!-- this is your empty cell -->
             <h:outputText value="2.1"/>
             <h:outputText value="2.2"/>
             <h:outputText value="2.3"/>
             <h:outputText value="2.4"/>
            </t:panelGrid>
            


            • 3. Re: datagrid problem
              ilya_shaikovsky

              a4j:repeat - allows fully free markups creation using iterable data.