1 Reply Latest reply on Jul 1, 2008 5:06 AM by Ilya Shaikovsky

    rich:dataTable - sorting available on 3.1.4?

    greg robinson Newbie

      sorry, posted this is the wrong area:

      Hello. JSF and RichFaces rookie here. I'm working on an app that's using RF 3.1.4 GA and myfaces 1.1.1 (api) and myfaces 1.1.5 (impl).

      I'm trying to implement table sorting on our main search result table. the table works fine, however, I cannot get it to sort. I'd like to use the clickable column headers I see on the RF demo site. Is this unique to 3.2+ or should I be able to use it in my env?

      Here's my table:

      <rich:dataTable value="#{searchRequestBean.proxyList}" var="proxy"
      cellpadding="0" cellspacing="0" width="90%" border="0">

      <f:facet name="header">
      <h:outputText value="Click column headers to sort" />

      <rich:column sortBy="#{proxy.companyName}">
      <f:facet name="header">
      <h:outputText value="Company Name" />
      <h:outputText value="#{proxy.companyName}" />

      <rich:column sortBy="#{proxy.status}">
      <f:facet name="header">
      <h:outputText value="Status" />
      <h:outputText value="#{proxy.status}" />

      ps - I did TRY to upgrade to 3.2 RF, but I got a whole boatload of version conflict problems that I need to sort through. I tried upgrading to MyFaces 1.2 and boosting my Jetty to 6.1.5. That yielded me new and different errors. So for now, just wondering if I should be able to make it work with 3.1.4 until I get everything else upgraded.