[richfaces-issues] [JBoss JIRA] Created: (RF-9489) Spinner used for filtering data table causes infinite loop
Pavol Pitonak (JIRA)
jira-events at lists.jboss.org
Tue Oct 12 05:40:39 EDT 2010
Spinner used for filtering data table causes infinite loop
----------------------------------------------------------
Key: RF-9489
URL: https://jira.jboss.org/browse/RF-9489
Project: RichFaces
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: component-input, component-tables
Affects Versions: 4.0.0.Milestone3
Environment: RichFaces 4.0.0-SNAPSHOT r.19446
Metamer 4.0.0-SNAPSHOT r.19535
Mojarra 2.0.2-FCS
GlassFish Server Open Source Edition 3.0.1
Java(TM) SE Runtime Environment 1.6.0_21-b06 @ Linux
Chrome 8.0.551.0 @ Linux
Reporter: Pavol Pitonak
Column in a data table filtered using spinner:
<rich:column id="columnNumberOfKids" filter="#{richDataTableBean.filterKidsImpl}">
<f:facet name="header">
<rich:inputNumberSpinner id="columnHeaderNumberOfKidsInput" value="#{richDataTableBean.kidsFilter}" minValue="0" maxValue="5" cycled="true">
<a4j:ajax render="commonGrid" execute="@this"/>
</rich:inputNumberSpinner>
</f:facet>
<h:outputText value="#{record.numberOfKids}" />
</rich:column>
public Filter<?> getFilterKidsImpl() {
return new Filter<Employee>() {
public boolean accept(Employee e) {
int kids = getKidsFilter();
if (e.getNumberOfKids() >= kids) return true;
return false;
}
};
}
When value of the spinner is changed, table is filtered but a lot of requests is fired (probably infinite loop).
http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDataTableBean.java
http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk/application/src/main/webapp/components/richDataTable/filtering.xhtml
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list