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

    content in the rich:column will be not rendered correctly

    Jing Ge Newbie


      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'"
       cellpadding="0" cellspacing="0" width="800" id="overview" rows="25"
       columnClasses="testcenter" value="#{overviewbean.overviews}" var="overview">
       <f:facet name="header">
       <richcolumn >
       <h:outputText styleClass="headerText"
       value="Column1" />
       <h:outputText styleClass="headerText"
       value="Column2" />

      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>

      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?