2 Replies Latest reply on Sep 26, 2008 7:07 AM by Sascha Janz

    problem with datascroller

    Sascha Janz Master

      i got a modalpanel with a datatable and a datascroller.

      every time the datascroller is clicked i got a full subimt on the page.

      do you see why?

      <?xml version="1.0" encoding="ISO-8859-1"?>
      <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:rich="http://richfaces.org/rich"
       xmlns:a4j="http://richfaces.org/a4j"
       xmlns:s="http://jboss.com/products/seam/taglib">
      <link rel="stylesheet" type="text/css" href="resources/los_style.css" />
      <rich:modalPanel id="weiterleitendlg" autosized="true" rendered="true" >
       <f:facet name="header">
       <h:panelGroup>
       <h:outputText value="Zuständigkeit setzen"></h:outputText>
       </h:panelGroup>
       </f:facet>
      
      
       <br />
      
       <h:form id="selectactorfrm">
      
       <h:inputText id="selmember" value="#{Session.membername}" styleClass="outputtext_read"
       style="width:280px">
       </h:inputText>
      
       <rich:suggestionbox width="270" height="#{Session.suggestListHeight}"
       usingSuggestObjects="true" id="selectlist" for="selmember"
       suggestionAction="#{Session.suggestMember}" var="s"
       fetchValue="#{s}" shadowOpacity="4"
       border="1" minChars="2"
       shadowDepth="4" cellpadding="2" >
       <h:column>
       <h:outputText value="#{s}" styleClass="outputtext_read" />
       </h:column>
      
       </rich:suggestionbox>
       <br />
       <br />
       <rich:separator></rich:separator>
       <br />
       <rich:dataTable value="#{Session.members}" var="m" id="membertable"
       onRowMouseOver="this.style.backgroundColor='#F1F1F1'"
       onRowMouseOut="this.style.backgroundColor='#{a4jSkin.tableBackgroundColor}'"
       cellpadding="0" cellspacing="0" columnsWidth="10%,85%" rows="10"
       width="100%" border="0" columns="2">
       <a4j:support event="onRowClick" reRender="selmember">
       <a4j:actionparam name="membername"
       assignTo="#{Session.membername}" value="#{m}">
       </a4j:actionparam>
       </a4j:support>
       <f:facet name="header">
       <rich:columnGroup>
       <rich:column colspan="1" style="text-align:left;" >
       <h:outputText value="Benutzer" styleClass="toolbartext" />
       </rich:column>
       <rich:column colspan="1" style="text-align:left;">
       <h:outputText value="Name" styleClass="toolbartext" />
       </rich:column>
      
       </rich:columnGroup>
      
       </f:facet>
       <rich:columnGroup>
       <rich:column colspan="1">
       <center><h:graphicImage value="/icons/user.png"></h:graphicImage>
       </center>
       </rich:column>
       <rich:column colspan="1" >
       <h:outputText value="#{m}" styleClass="outputtext_read" />
       </rich:column>
      
      
       </rich:columnGroup>
      
      
      
       </rich:dataTable>
       <rich:datascroller align="left" for="membertable" maxPages="20"
       page="#{Session.memberscrollerPage}" id="scroller1" />
       <rich:spacer height="30" />
       <div>
       <a4j:commandButton id="selectactorok" value="Ok" immediate="false"
       oncomplete="Richfaces.hideModalPanel('weiterleitendlg');"
       reRender="wfindexform" styleClass="rich-button" style="width:90px;float:left;"
       action="#{Session.weiterleiten}" >
       </a4j:commandButton>
       <a4j:commandButton id="selectactorcancel" value="Abbrechen" immediate="true" style="width:90px;float:right"
       oncomplete="Richfaces.hideModalPanel('weiterleitendlg')"
       styleClass="rich-button" >
       </a4j:commandButton>
       </div>
       </h:form>
      </rich:modalPanel>
      </ui:composition>