1 Reply Latest reply on Apr 12, 2012 6:40 AM by Matteo Mancini

    rich:dataTable is not correctly rendered inside ui:define facelets

    Matteo Mancini Newbie


      i have a layout.xhtml as template with a ui:insert facelets part for dinamically load content body: this content body is coded inside other xhtml pages, as it is usually done, and in my case

      i have a page called view.xhtml and inside i have put a ui:define, that referes to de ui:insert in layout.xhtml template.

      I have put this code inside ui:define: this is my view.xhtml page




      <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
          <ui:define name="content">
                    <h:form id="frmFunzioniView">
                            <rich:dataTable value="#{funzioniBean.listaFunzioni}" 
                                            var="fnz" id="table" rows="50">
                                <f:facet name="header">
                                          <h:outputText value="Codice" />
                                          <h:outputText value="Nome" />
                                  <h:outputText value="#{fnz.codice}" />
                                  <h:outputText value="#{fnz.nome}" />


      the problem is that dataTable is not rendered with skin style but purely formatted text.

      Does Anybody know why dataTable inside ui:define has this behaviour ?

      Others component like dataGrid or list don't have any kind problem and they are rendered correctly....why dataTable not ?

      thanks in advance !!