1 Reply Latest reply on Feb 25, 2008 9:57 AM by wbossons

    jQuery and datascroller?

    rusbob

      Hi all!
      I am young russian kettle (begginer) in richfaces....
      My problem.... i use jQuery ...
      <rich:datascroller align="center" for="equipList" maxPages="12" id="scrolTab1"/>
      <rich:spacer height="10" />
      <rich:dataTable width="500" id="equipList" rows="14"
      value="#{listObjMess.objMesss}" var="equip"
      >
      <a4j:support event="onRowClick" actionListener="#{listObjMess.calcRows}">
      </a4j:support> ........
      <rich:jQuery id="jQodd" selector="tr:odd" timing="immediate" rendered="true" query="addClass('odd-row')" />
      <rich:jQuery id="jQeven" selector="tr:even" timing="immediate" rendered="true" query="addClass('even-row')" />
      <rich:jQuery id="jQadd" selector="tr" timing="onload"
      query="mouseover(function(){jQuery(this).addClass('active-row')})"/>
      <rich:jQuery id="jQrem" selector="tr" timing="onload"
      query="mouseout(function(){jQuery(this).removeClass('active-row')})"/>
      </rich:dataTable>
      This solution work only i load page, in other case, when i go in page of table the the aid of datascroller its dont work :-(