3 Replies Latest reply on Apr 16, 2009 9:27 AM by Flavio Palumbo

    question on datascroller

    Flavio Palumbo Newbie

      Hi all,

      I'm trying to include a rich:datascroller on a rich:datatable but when it is rendered I cannot have the scroll button activated ; I'm sure I've more than one page to view but I'm getting crazy to make it work.

      The particularity of this page is that I'm using Apache Tiles to laying out the page and so this page is included in another page which provide the body tag.

      The code is below

      Any hint would be appreciated.


      <%@page contentType="text/html"%>
      <%@page pageEncoding="UTF-8"%>
      <%@taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
      <%@taglib uri="http://java.sun.com/jsf/html" prefix="h" %>
      <%@taglib uri="http://richfaces.org/a4j" prefix="a4j" %>
      <%@taglib uri="http://richfaces.org/rich" prefix="rich" %>
      
      <div class="contentContainer">
       <h:panelGroup id="messagePanel" layout="block">
       <h:messages errorStyle="color: red" infoStyle="color: green" layout="table"/>
       </h:panelGroup>
       <h2> <h:outputText value="#{label.listQuery}"/> </h2> <br />
       <h:form>
       <rich:datascroller align="left" for="anaqueryList" maxPages="20"
       pageIndexVar="pageIndex" pagesVar="pages">
       <f:facet name="first">
       <h:outputText value="First" />
       </f:facet>
       <f:facet name="pages">
       <h:outputText value="#{pageIndex} / #{pages}" />
       </f:facet>
       <f:facet name="last">
       <h:outputText value="Last" />
       </f:facet>
       </rich:datascroller>
      
       <br /> <br />
       <rich:dataTable value="#{anaquery.anaqueryItems}"
       var="item"
       id="anaqueryList"
       rows="5">
       <f:facet name="header">
       <rich:columnGroup>
       <h:column>
       <h:outputText value="#{label.id}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.tipoQueryShort}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.descrizione}" />
       </h:column>
       <h:column>
       <h:outputText value="#{label.cmdQueryShort}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.idAlert}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.msgAlert}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.idAction}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{label.parmActionShort}"/>
       </h:column>
       </rich:columnGroup>
       </f:facet>
      
       <h:column>
       <h:outputText value=" #{item.id}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.tipo}"/>
       </h:column>
       <h:column>
       <h:outputText value="#{item.descrizione4List}" title="#{item.descrizione}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.comando4List}" title=" #{item.comando}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.idalert}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.msgalert4List}" title=" #{item.msgalert}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.idaction}"/>
       </h:column>
       <h:column>
       <h:outputText value=" #{item.parmaction4List}" title=" #{item.parmaction}"/>
       </h:column>
       <h:column>
       <h:commandLink action="#{anaquery.detailSetup}">
       <h:graphicImage height="16px" url="/resources/css/images/show.png" title="#{label.dettaglio}"/>
       <f:param name="jsfcrud.currentAnaquery" value="#{jsfcrud_class['operazioniSospette.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][anaquery.converter].jsfcrud_invoke}"/>
       </h:commandLink>
       <h:outputText value=" "/>
       <h:commandLink action="#{anaquery.editSetup}">
       <h:graphicImage height="16px" url="/resources/css/images/edit.png" title="#{label.variazione}"/>
       <f:param name="jsfcrud.currentAnaquery" value="#{jsfcrud_class['operazioniSospette.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][anaquery.converter].jsfcrud_invoke}"/>
       </h:commandLink>
       <h:outputText value=" "/>
       <h:commandLink action="#{anaquery.destroy}">
       <h:graphicImage height="16px" url="/resources/css/images/del.png" title="#{label.cancella}"/>
       <f:param name="jsfcrud.currentAnaquery" value="#{jsfcrud_class['operazioniSospette.jsf.util.JsfUtil'].jsfcrud_method['getAsConvertedString'][item][anaquery.converter].jsfcrud_invoke}"/>
       </h:commandLink>
       </h:column>
       </rich:dataTable>
      
       <br />
       <div id="buttonBar">
       <h:commandButton action="#{anaquery.createSetup}" title="#{label.inserimento}" image="/resources/css/images/22-new.png"/>
       </div>
       </h:form>
      </div>