2 Replies Latest reply on May 9, 2008 11:27 AM by eicki

    dataTable highlight selected row

    lectrix

      hello
      is there a way to highlight the selected row of a dataTable?

      i am selecting a row with <a4j:support> like this:

      <rich:dataTable
      id="textList"
      width="600"
      value="#{TeamWerkstattTextsJsfBean.texts}"
      var="textEntry"
      sortMode="single"
      >
      <a:support event="onRowClick" reRender="TextDetailsPanel" action="#{TeamWerkstattTextsJsfBean.select}"></a:support>
      
      <a:support event="onRowDblClick" reRender="TextDetailsPanel" action="#{TeamWerkstattTextsJsfBean.editAction}" oncomplete="ctrl.convertTextareas(500,300);"></a:support>
      .
      .
      .
      


      backing bean action:
      public void select()
      {
      TextEntry entry = (TextEntry) FacesContext.getCurrentInstance().getExternalContext().getRequestMap().get("textEntry");
      this.setTextEntry(entry);
      }
      


      Is there a posibility to set a styleClass or whatever to the selected row on reRender? Or maybe there somehow with jQuery?

      thanks!
      BR
      stefan.