5 Replies Latest reply on Aug 6, 2009 9:50 AM by Ilya Shaikovsky

    Sorting with RichFaces 3.1.6

    Ilian Georgiev Newbie

      Hello,

      I'm using RichFaces 3.1.6 and I' trying to get a table sorted with no luck.
      Here is the code :

      <rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="200px" id="personList" rows="10" rendered="#{personSearch.showTable}" cellpadding="0" cellspacing="0"
       width="700" border="0" var="personItem" value="#{personSearch.personData}" sortMode="single">
       <rich:column id="persnr" >
       <f:facet name="header">
       <h:outputText value="#{msgs['label.partnerNumber']}" />
       </f:facet>
       <h:outputText value="#{personItem.persnr}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{msgs['label.fullName']}" />
       </f:facet>
       <h:outputText value="#{personItem.vorname} #{personItem.fatherName} #{personItem.famName}" />
       </rich:column>
       <rich:column >
       <f:facet name="header">
       <h:outputText value="#{msgs['label.EGNBirthDate']}" />
       </f:facet>
       <h:outputText value="" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{msgs['label.postcode']}" />
       </f:facet>
       <h:outputText value="#{personItem.adresse.plz}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{msgs['label.city']}" />
       </f:facet>
       <h:outputText value="#{personItem.adresse.ort}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{msgs['label.street']}" />
       </f:facet>
       <h:outputText value="#{personItem.adresse.strasse}" />
       </rich:column>
       <rich:column>
       <f:facet name="header">
       <h:outputText value="#{msgs['label.company']}" />
       </f:facet>
       <h:outputText value="" />
       </rich:column>
       </rich:scrollableDataTable>


      I saw in the documentation for this release that the sorting is possible.
      When the table is displayed and I click on table header I get the following Javascript error : Error: localOptions has no properties

      Are there anyone who had same problem ?

      Thanks in advance.