7 Replies Latest reply on Apr 25, 2007 1:17 PM by mbrunnert

    actionListener not fired on datascroller

      I trying to fire an actionListener event on my datascroller. See code below. The actionlistener is a Seam component if that matters. The action fires just fine on the h:commandButton, but nothing happens with the scroller.

      My purpose is to set the scroller position in conversation scope so that if the user navigates back to the page the scroll position can be restored.

      I would appreciate any advice on how to achieve this.

      <!DOCTYPE composition PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
      <ui:composition xmlns="http://www.w3.org/1999/xhtml"
       xmlns:ui="http://java.sun.com/jsf/facelets"
       xmlns:h="http://java.sun.com/jsf/html"
       xmlns:f="http://java.sun.com/jsf/core"
       xmlns:s="http://jboss.com/products/seam/taglib"
       xmlns:rich="http://richfaces.ajax4jsf.org/rich"
       xmlns:a4j="https://ajax4jsf.dev.java.net/ajax">
       <div align="center">
       <a4j:form id="topicListForm">
      
       <rich:datascroller for="data"
       actionListener="#{topicListScrollerActionListener.processAction}"/>
      
       <rich:dataTable id="data"
       var="topicL"
       value="#{topicList}"
       rules="all"
       rows="21"
       rowKeyVar="rowKeyTest"
       styleClass="f_table"
       rowClasses="tr0,tr1">
       <rich:column>
       <f:facet name="header">usr</f:facet>
       <h:outputText value="#{topicL.usrFrom.usr}"/>
       </rich:column>
       <rich:column>
       <f:facet name="header">action</f:facet>
       <h:commandButton image="images/buttons/edit.gif"
       title="Edit"
       action="#{topicManager.select}"
       class="icons"
       actionListener="#{topicListScrollerActionListener.processAction}"/>
       </rich:column>
       </rich:dataTable>
      
       </a4j:form>
       </div>
      </ui:composition>