This content has been marked as final.
Show 8 replies
-
1. Re: datascroller doesn't work if dataGrid is not the only el
ilya_shaikovsky Aug 28, 2008 6:10 AM (in response to cocolino)show your code. Also tell us about RF version, and place rich:messages to the page if the scroller isn't ajaxSingle.
-
2. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Aug 28, 2008 6:50 AM (in response to cocolino)I don't have it right now, but I'll show it later, when I'm at home.
-
3. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Aug 29, 2008 12:58 PM (in response to cocolino)<%@ 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"> <%@ 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"%> <html> <head> <title><h:outputText value="#{msg.appTitle}"/></title> </head> <body> <h:form> <h:panelGrid columns="3"> <h:outputText value="Search"/> <h:panelGroup/> <h:panelGroup/> <h:outputLabel for="name" value="name"/> <h:inputText id="name" value="#{userBean.name}"/> <h:message for="name"/> <h:outputLabel for="surname" value="surname"/> <h:inputText id="surname" value="#{userBean.surname}"/> <h:message for="surname"/> <h:outputLabel for="email" value="e-mail"/> <h:inputText id="email" value="#{userBean.email}"/> <h:message for="email"/> <h:panelGroup/> <h:panelGroup> <h:commandButton type="submit" value="search" action="#{userBean.getFoundUsers}"/> <h:commandButton type="reset" value="#{msg.registrationFormReset}" immediate="true"/> </h:panelGroup> <h:panelGroup/> </h:panelGrid> </h:form> <f:facet name="header"> <h:outputText value="found users"/> </f:facet> <h:form> <rich:dataGrid value="#{userBean.foundUsers}" var="user" columns="3" elements="9"> <rich:panel style="width:200px; padding: 0"> <f:facet name="header"> <h:outputText value="#{user.name} #{user.surname}"/> </f:facet> <h:panelGrid columns="2" style="font-size: 12px"> <h:outputText value="E-mail:"/> <h:outputText value="#{user.email}"/> </h:panelGrid> </rich:panel> <f:facet name="footer"> <rich:datascroller/> </f:facet> </rich:dataGrid> </h:form> </body> </html>
-
4. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Aug 30, 2008 12:53 PM (in response to cocolino)RF version: 3.2.1
-
5. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Sep 1, 2008 4:15 AM (in response to cocolino)Nobody ever used dataGrid with other elements on page?
-
7. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Sep 1, 2008 2:22 PM (in response to cocolino)Give me your IP :) Just kidding. I know about this example.
http://livedemo.exadel.com/richfaces-demo/richfaces/dataGrid.jsf?c=dataGrid
My code is similar. So tell me what is wrong after comparing my code and code from example. -
8. Re: datascroller doesn't work if dataGrid is not the only el
cocolino Sep 1, 2008 2:50 PM (in response to cocolino)OK, I have figured it out. I was receiving results by method with parameters with request scope, so first page was ok, but I couldn't go to second page of results, because parameters were null. Something like this ;)