datatablescroller not works
esoj102sistemas Apr 29, 2008 7:23 PMHello, escuse me for my english.
<rich:datascroller> not works with <rich:dataTable>
my .jsp file
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
uri="http://yui4jsf.sourceforge.net" prefix="yui"%><%@taglib
uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
uri="http://www.jenia.org/jsf/popup" prefix="jp"%><%@taglib
uri="http://richfaces.org/a4j" prefix="a4j"%><%@taglib
uri="https://ajax4jsf.dev.java.net/ajax" prefix="ajax"%><%@taglib
uri="http://richfaces.org/rich" prefix="rich"%><%@taglib
uri="http://richfaces.ajax4jsf.org/rich" prefix="richfaces"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Insert title here
<f:view>
<h:form>
<rich:dataTable id="datos2" binding="#{prueba.dt}" var="datos" rows="1" first="0">
<f:facet name="header">
<h:outputText value="Prueba de DataTable"></h:outputText>
</f:facet>
<rich:column>
<f:facet name="header">
<h:outputText value="Descripción"></h:outputText>
</f:facet>
<h:outputText value="#{datos.pag_concepto}"></h:outputText>
</rich:column>
<f:facet name="footer">
<rich:datascroller for="datos2" id="p"></rich:datascroller>
</f:facet>
</rich:dataTable>
<h:commandButton value="Buscar" action="#{prueba.buscar_action}"></h:commandButton>
</h:form>
</f:view>
My BackingBean .java
<%@taglib uri="http://java.sun.com/jsf/core" prefix="f"%><%@taglib
uri="http://yui4jsf.sourceforge.net" prefix="yui"%><%@taglib
uri="http://java.sun.com/jsf/html" prefix="h"%><%@taglib
uri="http://www.jenia.org/jsf/popup" prefix="jp"%><%@taglib
uri="http://richfaces.org/a4j" prefix="a4j"%><%@taglib
uri="https://ajax4jsf.dev.java.net/ajax" prefix="ajax"%><%@taglib
uri="http://richfaces.org/rich" prefix="rich"%><%@taglib
uri="http://richfaces.ajax4jsf.org/rich" prefix="richfaces"%><%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
Insert title here
<f:view>
<h:form>
<rich:dataTable id="datos2" binding="#{prueba.dt}" var="datos" rows="1" first="0">
<f:facet name="header">
<h:outputText value="Prueba de DataTable"></h:outputText>
</f:facet>
<rich:column>
<f:facet name="header">
<h:outputText value="Descripción"></h:outputText>
</f:facet>
<h:outputText value="#{datos.pag_concepto}"></h:outputText>
</rich:column>
<f:facet name="footer">
<rich:datascroller for="datos2" id="p"></rich:datascroller>
</f:facet>
</rich:dataTable>
<h:commandButton value="Buscar" action="#{prueba.buscar_action}"></h:commandButton>
</h:form>
</f:view>
When I click on the commandbutton, we go to data base and get 3 records. I define rows="1" and the datatablescroller write 3 pages. This is correct but when i click on the arrow for go to next page, the datatablescroller no works.
WHY???????????????????????????