[richfaces-issues] [JBoss JIRA] Created: (RF-6261) ScrollableDataTable inside outputPanel + push: SDT is broken after sorting and push rerendering.
Alexander Dubovsky (JIRA)
jira-events at lists.jboss.org
Thu Feb 19 08:10:45 EST 2009
ScrollableDataTable inside outputPanel + push: SDT is broken after sorting and push rerendering.
------------------------------------------------------------------------------------------------
Key: RF-6261
URL: https://jira.jboss.org/jira/browse/RF-6261
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Attachments: 45.png
Source:
<a4j:outputPanel id="table">
<rich:scrollableDataTable id="scrolltable" value="#{sdTable.value}"
var="item">
<rich:column width="100px">
<f:facet name="header">
<h:outputText value="Name" />
</f:facet>
<a4j:outputPanel layout="block">
<h:outputText value="#{item.make}" />
</a4j:outputPanel>
</rich:column>
</rich:scrollableDataTable>
</a4j:outputPanel>
<a4j:push eventProducer="#{sdTable.addPushListener}" interval="5000"
ajaxSingle="true" reRender="table" />
<a4j:commandButton value="addNewItem" action="#{sdTable.addNewItem}" />
Bean:
public void addNewItem() {
String name = "ABC" + ++counter;
value.add(new Car(name, "", counter));
synchronized (pushListener) {
pushListener.onEvent(new EventObject(this));
}
}
public void addPushListener(EventListener listener) {
synchronized (listener) {
if (pushListener != listener) {
pushListener = (PushEventListener) listener;
}
}
}
# Click "addNewItem" button
# Sort table before push request accures
# Wait until push request occures
Result: table is broken. See screen shot.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the richfaces-issues
mailing list