[richfaces-issues] [JBoss JIRA] Updated: (RF-6261) ScrollableDataTable inside outputPanel + push: SDT is broken after sorting and push rerendering.
Ilya Shaikovsky (JIRA)
jira-events at lists.jboss.org
Mon Mar 23 07:12:37 EDT 2009
[ https://jira.jboss.org/jira/browse/RF-6261?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Ilya Shaikovsky updated RF-6261:
--------------------------------
Component/s: ScrollableDataTable
> 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
> Components: ScrollableDataTable
> Affects Versions: 3.3.1
> Reporter: Alexander Dubovsky
> Assignee: Konstantin Mishin
> Fix For: Future
>
> 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