[JBoss JIRA] Created: (RF-6261) ScrollableDataTable inside outputPanel + push: SDT is broken after sorting and push rerendering.
by Alexander Dubovsky (JIRA)
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
17 years
[JBoss JIRA] Created: (RF-6150) scrollableTable: dnd broken after table update after sorting
by Ilya Shaikovsky (JIRA)
scrollableTable: dnd broken after table update after sorting
------------------------------------------------------------
Key: RF-6150
URL: https://jira.jboss.org/jira/browse/RF-6150
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: IE, FF
Reporter: Ilya Shaikovsky
Assignee: Nick Belaevski
after sorting you will not be able to drag.
<rich:scrollableDataTable rowKeyVar="rkv" frozenColCount="1" height="3400px"
width="700px" id="carList" columnClasses="col"
value="#{dataTableScrollerBean.allCars}" var="category" sortMode="single"
binding="#{dataTableScrollerBean.table}"
sortOrder="#{dataTableScrollerBean.order}"
selection="#{dataTableScrollerBean.selection}" onRowClick="alert('#{category.make}');">
<rich:column id="make">
<f:facet name="header"><h:outputText styleClass="headerText" value="Make" /></f:facet>
<a4j:outputPanel layout="block">
<rich:dragSupport dragIndicator=":indicator" dragType="type"/>
<h:outputText value="#{category.make}" />
</a4j:outputPanel>
</rich:column>
--
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
17 years