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

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

    mancio791

      Hi,

      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"
          xmlns:h="http://java.sun.com/jsf/html"
          xmlns:f="http://java.sun.com/jsf/core"
          xmlns:ui="http://java.sun.com/jsf/facelets"
          xmlns:a4j="http://richfaces.org/a4j"
          xmlns:rich="http://richfaces.org/rich"
          template="/pages/base/layout/layout2.xhtml">
                  
          <ui:define name="content">
                    
                    <h:form id="frmFunzioniView">
                            
                            <rich:dataTable value="#{funzioniBean.listaFunzioni}" 
                                            var="fnz" id="table" rows="50">
                                            
                                <f:facet name="header">
                                    <rich:columnGroup>
                                        <rich:column>
                                          <h:outputText value="Codice" />
                                      </rich:column>
                                      <rich:column>
                                          <h:outputText value="Nome" />
                                      </rich:column>
                                    </rich:columnGroup>
                                </f:facet>
                                
                              <rich:column>
                                  <h:outputText value="#{fnz.codice}" />
                              </rich:column>
                              <rich:column>
                                  <h:outputText value="#{fnz.nome}" />
                              </rich:column>
          
                            </rich:dataTable>
                        
                                     
                        
                    </h:form>
                    
          </ui:define>
      
      </ui:composition>
      

       

      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 !!