1 Reply Latest reply on Aug 14, 2012 2:21 AM by Martin Kožený

    Scrolling with Extended data table in RichFaces 3.3.3.Final

    Martin Kožený Newbie

      Hi to all,

       

      I am solving some problems with extended data table in RF 3.3.3.Final. I have to use extended data table in my app, b/c I need its features like horizontal scrolling, column freezing and multi row selection. In RF 3.3.3.Final no scrolling at the extended data table appears, table is only cut off, and frozen columns property is not available (only at scrollable data table), but I can see, that in RF 4.0.0.Final is available. I use version 3.3.3.Final, b/c in 4.0.0. there is no implementation of rich:columns. I am also trying to find, whether is possible to use component from higher version of richfaces in lower version. Here is my code and also how my web page looks like:

       

       

      <rich:extendedDataTable style="width: 700px"   id="entityTable" value="#{entityDataModel}"   
                                      enableContextMenu="false"                             var="entityIter" rows="#{customizerBean.pageSize}" selectionMode="multi" selection="#{selectedListAction.selection}">
                  <rich:columns value="#{selectedListAction.fieldValuesList}" var="fieldIter" sortable="false">
      
                      <f:facet name="header"><h:outputText value="#{msg[selectedListAction.entityClass.simpleName.concat('.').concat(fieldIter.key)]}"/></f:facet>
                      <h:outputText value="#{entityIter.entityFieldValues[fieldIter.key]}" rendered="#{!selectedListAction.isDateField(fieldIter.c)}"/>
                      <h:outputText value="#{entityIter.entityFieldValues[fieldIter.key]}" rendered="#{selectedListAction.isDateField(fieldIter.c)}">
                          <f:convertDateTime pattern="#{customizerBean.dateTimePattern}" timeZone="#{localeBean.timeZone}"/>
                      </h:outputText>
                  </rich:columns>
                     
          </rich:extendedDataTable>
      

       

      extendedDataTable.png

       

       

      Thanks for help in advance.