Hi there,
I hv a page that would display the search result depending on particular parameter in backing bean, otherwise, just hide the result table.
now the problem is the result table can be show/hide depending on the parameter, however the datascroller does not work for the datatable. I can see the datascroller is changed, while datatable keep no change.
did anybody know why? or any suggestion? thx in advance.
my source code as below:
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%> <%@ taglib uri="http://java.sun.com/jsf/core" prefix="f"%> <%@ taglib uri="http://richfaces.org/rich" prefix="rich"%> <%@ taglib uri="http://richfaces.org/a4j" prefix="a4j"%> <html> <head> <title></title> </head> <body> <f:view> <h:form> <a4j:commandButton reRender="pan" value="Refresh"> <a4j:actionparam name="param1" value="showResult" assignTo="#{paraBean.param1}"/> </a4j:commandButton> <br /> <rich:spacer height="100"></rich:spacer> <a4j:outputPanel id="pan" layout="none"> <rich:dataTable value="#{employeeList.employees}" var="emp" id="empList" rows="2" rendered="#paraBean.param1=='showResult'}"> <h:column> <h:outputText value="#{emp.name}" /> </h:column> <f:facet name="footer"> <rich:datascroller for="empList"></rich:datascroller> </f:facet> </rich:dataTable> </a4j:outputPanel> </h:form> </f:view> </body> </html>
Did anybody has idea???