[
https://jira.jboss.org/browse/RF-9489?page=com.atlassian.jira.plugin.syst...
]
Ilya Shaikovsky commented on RF-9489:
-------------------------------------
konstantin, just simple check with
<rich:inputNumberSpinner id="columnHeaderNumberOfKidsInput"
value="#{carsFilteringBean.mileageFilter}" minValue="0"
step="10000" maxValue="100000" cycled="true"
onchange="alert('1')">
shows me that alert called continuosly after just single button click.
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
Assignee: Konstantin Mishin
Fix For: 4.0.0.Milestone4
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/appl...
http://anonsvn.jboss.org/repos/richfaces/modules/tests/metamer/trunk/appl...
--
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