3 Replies Latest reply on Mar 25, 2009 1:54 PM by odomitchi

    extendedDataTable does not load

      Hi, I'm new to richfaces (3.3.0GA with seam and facelets) and I'm trying to use an ExtendedDataTable, I followed the source code on the live demo but when I run it, all the components on the page load except for the table which appears to be loading indefinitely. Please see the details of my code below. Note I also tested a rich:dataTable succesfully but if I changed the tag to rich:ExtendedDataTable the same issue occurs. Please help! Thanks

      A - facelets page

      <!DOCTYPE composition 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:s="http://jboss.com/products/seam/taglib"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       template="/layout/template.xhtml">
      
       <ui:define name="body">
      
       <h:form>
       <h:panelGrid> <!-- columns="2" columnClasses="top,top"-->
       <rich:extendedDataTable id="transactionData" value="#{transactionResults}" var="_transaction"
       width="580px" height="400px" sortMode="#{transactionAction.sortMode}" selectionMode="#{transactionAction.selectionMode}">
       <rich:column sortable="true" sortBy="#{_transaction.id.transactionname}" filterBy="#{_transaction.id.transactionname}" filterEvent="onkeyup" width="170px" label="transaction id">
       <f:facet name="header">
       <h:outputText value="transaction id"/>
       </f:facet>
       <h:outputText value="#{_transaction.id.transactionname}"/>
       </rich:column>
       <rich:column sortable="true" sortBy="#{_transaction.transactiondescription}" filterBy="#{_transaction.transactiondescription}" filterEvent="onkeyup" width="170px" label="description">
       <f:facet name="header">
       <h:outputText value="description"/>
       </f:facet>
       <h:outputText value="#{_transaction.transactiondescription}"/>
       </rich:column>
       </rich:extendedDataTable>
       </h:panelGrid>
       </h:form>
       </ui:define>
      </ui:composition>


      B - The seam componenet transactionAction has getters and setters for sortMode and selectionMode

      C - the factory transactionResults is defined in componenets.xml and while debugging (place breakpoint) I can see that the collection is getting populated

      Thanks for your help


        • 1. Re: extendedDataTable does not load

          sorry for the double post

          • 2. Re: extendedDataTable does not load
            ilya_shaikovsky

            ok.. add please template code. which server and browser you using?

            • 3. Re: extendedDataTable does not load

              See template code below:

              <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
              "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
              <html xmlns="http://www.w3.org/1999/xhtml"
               xmlns:ui="http://java.sun.com/jsf/facelets"
               xmlns:h="http://java.sun.com/jsf/html"
               xmlns:f="http://java.sun.com/jsf/core"
               xmlns:a="http://richfaces.org/a4j"
               xmlns:rich="http://richfaces.org/rich"
               xmlns:s="http://jboss.com/products/seam/taglib">
               <head>
               <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
               <title><ui:insert name="title">Console</ui:insert></title>
               <a:loadStyle src="/css/theme.css"/>
               <a:loadStyle src="resource://org/jboss/seam/ui/richfaces/styles.xcss"/>
               </head>
              
               <body>
              
               <ui:insert name="header">
               <ui:include src="header.xhtml"/>
               </ui:insert>
              
               <ui:include src="menu.xhtml">
               <ui:param name="projectName" value="Console"/>
               </ui:include>
              
               <div class="body">
               <h:messages globalOnly="true" styleClass="message" errorClass="errormsg" infoClass="infomsg" warnClass="warnmsg"/>
               <ui:insert name="body"/>
               </div>
              
               <div class="footer">
              
               <s:fragment rendered="#{init.debug}">
               #{'[ '}
               <s:link id="resetSession" view="/home.xhtml" action="#{org.jboss.seam.web.session.invalidate}" propagation="none" value="Reset session"/>
               #{' | '}
               <s:link id="debugConsole" view="/debug.xhtml" value="Debug console" target="debugConsole"/>
               #{' ]'}
               <br/>
               <strong>conversation:</strong> id = #{conversation.id}, #{conversation.longRunning ? 'long running' : 'temporary'}#{conversation.nested ? ', nested, parent id = '.concat(conversation.parentId) : ''}
               </s:fragment>
               </div>
              
               </body>
              </html>



              PS: do I need the value to be set to an ExtendedTableDataModel object and not a simple collection?