4 Replies Latest reply: Nov 13, 2010 2:40 AM by EJP RSS

    Problem with rich datatable

    795655
      Hi, there.


      I'm a newbie in JSF and was trying to build a rich datatable.

      Using the docs of this page I was able to build the header but not a sub table:

      <rich:dataTable
      cellpadding="0" cellspacing="0"
      width="780" border="0">

      <f:facet name="header">
           <rich:columnGroup>
                <rich:column>
                     <rich:spacer />
                </rich:column>
                <rich:column>
                     <h:outputText value="Nome" />
                </rich:column>
                <rich:column>
                     <h:outputText value="Canal" />
                </rich:column>     
                <rich:column>
                     <h:outputText value="PT" />
                </rich:column>
                <rich:column>
                     <h:outputText value="EN" />
                </rich:column>
           </rich:columnGroup>
      </f:facet>

      <rich:subTable>
      <rich:column>
           <h:outputText value="batatas"></h:outputText>
           <f:facet name="footer">
                <rich:spacer />
           </f:facet>
      </rich:column>
      </rich:subTable>

      </rich:dataTable>

      What is wrong with this code? Can anyone help me?

      Thanks in advance.