3 Replies Latest reply on Jul 6, 2007 7:40 AM by ilya_shaikovsky

    content in the rich:column will be not rendered correctly

    polygoncell

      hallo,

      I have tried to use the datatable just like the developer guide tells me. But I get a problem, the content in the richt:column will be not rendered. There is nothing in the rendered "td" tags.

      The code looks like:

       <div align="center"><h:form>
       <rich:dataTable onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
      onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" width="800" id="overview" rows="25"
       columnClasses="testcenter" value="#{overviewbean.overviews}" var="overview">
       <f:facet name="header">
       <rich:columnGroup>
       <richcolumn >
       <h:outputText styleClass="headerText"
       value="Column1" />
       </rich:column>
       <h:column>
       <h:outputText styleClass="headerText"
       value="Column2" />
       </h:column>
       ......
      
      


      The rendered html looks like this:

      <table class="dr-table rich-table " id="_id11:overview" border="0" cellpadding="0" cellspacing="0" width="800">
      <colgroup span="8"></colgroup><thead>
      <tr class="dr-table-header rich-table-header ">
       <td class="dr-table-headercell rich-table-headercell " id="_id11:overview:_id13"></td>
       <td id="_id11:overview:_id15" class="dr-table-headercell rich-table-headercell ">
       <span class="headerText">Column2</span>
       </td>
      ......
      


      As the result shows, the <h:outputText> in the <h:column> tag will be rendered correctly but the <rich:column> not.

      I have read the whole developer guide, searched in the whole internet, and still have no idea why it does not work!

      could any expert help me?