9 Replies Latest reply on Nov 26, 2007 11:04 AM by ilya_shaikovsky

    Scrollable Table!!! Help Please!!!

    roykachouh

      I posted this before, but I have gotten no response.


      I am trying to use the scrollable data table, i have taken the sample code from richfaces demo site. But the table doesn't appear to extract the data from the list. I just get an empty table...

      What am I doing wrong here?

      Code:
      
      <rich:tab label="System Identifiers">
       <rich:scrollableDataTable height="200px" width="500px" id="carList" rows="20"
       value="#{API.cpmDashboard.systemIdentifierList}" var="systemID">
      
       <rich:column id="systemName">
       <f:facet name="header"><h:outputText value="System ID Name" /></f:facet>
       <h:outputText value="#{systemID.systemName}" />
       </rich:column>
       <rich:column id="systemId">
       <f:facet name="header"><h:outputText styleClass="headerText" value="System ID Value" /></f:facet>
       <h:outputText value="#{systemID.systemName}" />
       </rich:column>
       </rich:scrollableDataTable>
       </rich:tab>
      


      If you need any information please let me know...

      here are the jars that I am using...


      richfaces-api-3.1.0-rc6.jar
      richfaces-impl-3.1.0-rc6.jar
      richfaces-ui-3.1.0-rc6.jar


        • 1. Re: Scrollable Table!!! Help Please!!!
          pourmo

          What is your Application Server and which Framework are you using?

          • 2. Re: Scrollable Table!!! Help Please!!!
            roykachouh

             


            What is your Application Server and which Framework are you using?


            Tomcat 5.x

            Framework?

            I'm not sure what you mean, but I am using JSF, Spring/Hibernate, Richfaces/Ajax4Jsf

            • 3. Re: Scrollable Table!!! Help Please!!!
              jak.wei

              add <h: form /> out of <rich:scrollableDataTable

              • 4. Re: Scrollable Table!!! Help Please!!!
                ilya_shaikovsky

                may rendering bugs will be fixed in 3.2.0 snapshots.

                • 5. Re: Scrollable Table!!! Help Please!!!
                  roykachouh

                   

                  "ilya_shaikovsky" wrote:
                  may rendering bugs will be fixed in 3.2.0 snapshots.



                  When will 3.2 snapshots be available???

                  • 6. Re: Scrollable Table!!! Help Please!!!
                    ilya_shaikovsky
                    • 7. Re: Scrollable Table!!! Help Please!!!
                      roykachouh

                      Hey Ilya,

                      I updated my richfaces library to the 3.2 snapshot, using the following jar files....

                      richfaces-api-3.2.0-20070925.021813-1.jar
                      richfaces-impl-3.2.0-20070925.021813-1.jar
                      richfaces-ui-3.2.0-20070925.235823-1.jar

                      I am still having the same problem. I am populating a list with 3 objects, but when i attempt to use the richDataScroller the table always comes back as empty.

                      Again, here is my xhtml code...

                      
                      <rich:tab label="System Identifiers">
                       <rich:scrollableDataTable rowKeyVar="rkv" height="200px" width="500px" id="carList" rows="20"
                       value="#{API.cpmDashboard.systemIdentifierList}" var="systemID" sortMode="single">
                      
                       <rich:column id="systemName">
                       <f:facet name="header"><h:outputText value="System ID Name" /></f:facet>
                       <h:outputText value="#{systemID.systemName}" />
                       </rich:column>
                       <rich:column id="systemId">
                       <f:facet name="header"><h:outputText styleClass="headerText" value="System ID Value" /></f:facet>
                       <h:outputText value="#{systemID.systemName}" />
                       </rich:column>
                       </rich:scrollableDataTable>
                       </rich:tab>
                      


                      The above is all wrapped in a form.

                      Here is how I populate the list, it is just a mock for now...

                      public List retrieveExistingSystemIdentifiers() throws CheckedException {
                       LOG.info("Retrieving existing system identifiers");
                       List<SystemIdentifierVO> returnList = new ArrayList<SystemIdentifierVO>();
                      
                       SystemIdentifierVO algo = new SystemIdentifierVO();
                       algo.setSystemName("ALGO");
                       algo.setSystemId("IDENT");
                       returnList.add(algo);
                      
                       SystemIdentifierVO bloomberg = new SystemIdentifierVO();
                       algo.setSystemName("BLOOMBERG");
                       algo.setSystemId("CUSIP");
                       returnList.add(bloomberg);
                      
                       SystemIdentifierVO isid = new SystemIdentifierVO();
                       algo.setSystemName("ISID");
                       algo.setSystemId("ISID_ID");
                       returnList.add(isid);
                      
                       LOG.info("Finished retrieiving system identifiers, no. of records found: "+returnList.size());
                       return returnList;
                       }
                      
                      


                      • 8. Re: Scrollable Table!!! Help Please!!!
                        roykachouh

                        CORRECTION...
                        I am using the following jars:

                        richfaces-api-3.2.0-20070925.021813-1.jar
                        richfaces-impl-3.2.0-20070925.021813-1.jar
                        richfaces-ui-3.2.0-20070925.235823-1.jar

                        • 9. Re: Scrollable Table!!! Help Please!!!
                          ilya_shaikovsky

                          At first there is november jars (you've used september ones.)

                          and what do you mean under "richDataScroller usage". If you mean rich:datascroller component - it isn't alowed to use now with scrollableDataTable.