2 Replies Latest reply on Nov 13, 2011 4:40 AM by Mahesh Bonagiri

    rich:dataTable not being rendered properly

    Ali Aafaq Newbie

      I am using RichFaces 4.0 Final (tried with 4.1.0M2 as well). I am using a simple datatable with nothing special but it is not being rendered properly without the header format and footers. I mean it is totally missing formatting and style. I have no stylesheet in my application as well.table.jpg

      I have attached the screen shot and code as well. Although none of my post have been answered before but I am hoping that may be this is simple and someone might be able to help me.

       

       

      <ui:composition>
          <rich:panel header="View/Edit Group Page">
                             <rich:dataTable value="#{groupBean.availableGroups}" var="group" iterationStatusVar="it">
                                       <rich:column>
                                                 <f:facet name="header">#</f:facet>
                      #{it.inde}
                                       </rich:column>
                                       <rich:column>
                                                 <f:facet name="header">Group Name</f:facet>
                      <h:outputText value="#{group.gname}" />
                                       </rich:column>
                                       <rich:column>
                                                 <f:facet name="header">Description</f:facet>
                      <h:outputText value="#{group.description}" />
                                       </rich:column>
                                       <f:facet name="footer">
                      <rich:dataScroller page="#{groupBean.page}" />
                  </f:facet>
                             </rich:dataTable>
          </rich:panel>
      </ui:composition>
      
      
        • 1. Re: rich:dataTable not being rendered properly
          Ali Aafaq Newbie

          I figured out the the request response never completes and I get an error in internet explorer. The error is

           

           

          Webpage error details
          
          
          User Agent: Mozilla/4.0 (compatible; MSIE 8.0; Windows NT 6.1; Trident/4.0; SLCC2; .NET CLR 2.0.50727; .NET CLR 3.5.30729; .NET CLR 3.0.30729; Media Center PC 6.0; .NET4.0C; Tablet PC 2.0; InfoPath.1; .NET4.0E)
          Timestamp: Fri, 14 Oct 2011 17:39:14 UTC
          
          
          
          
          Message: Object expected
          Line: 2
          Char: 1
          Code: 0
          URI: http://localhost:8080/MINT/index.xhtml
          
          
          
          
          Message: Could not complete the operation due to error 80020101.
          Line: 1
          Char: 314
          Code: 0
          URI: http://localhost:8080/MINT/javax.faces.resource/jsf.js.xhtml?ln=javax.faces
          
          
          

           

          It is the simplest table i am using and getting this error.I can't figure out why. Is it that datatable is also broken in richfaces 4.

          • 2. Re: rich:dataTable not being rendered properly
            Mahesh Bonagiri Newbie

            by seeing your code,

            i think the problem is in following snippet of code

             

            <rich:column>

                 <f:facet name="header">#</f:facet>
                           #{it.inde}
                 </rich:column>

            it should be #{it.index} instead of #{it.inde}

             

            try changing