[JBoss JIRA] Created: (RF-4619) ScrollableDataTable selection after sorting with a4j:keepAlive
by Victoria S (JIRA)
ScrollableDataTable selection after sorting with a4j:keepAlive
--------------------------------------------------------------
Key: RF-4619
URL: https://jira.jboss.org/jira/browse/RF-4619
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.2.2
Environment: RF 3.2.2
Reporter: Victoria S
Hello,
I've been using the selection on the scrollable data table for some time now, but hadn't checked what would happen if I re-sorted the data.
It looks like I'd been using the wrong way to get the selected table data.
I browsed on here yesterday and changed my implementation slightly so it sets the tables row key and asks the table for the row data.
If I don't use the a4j:keepAlive tag, the selection behaves well, but the scrollable data table headers disappear.
If I do use the a4j:keepAlive (which all of my pages rely on, so I need to use if possible) the selection is incorrect when re-sorted.
Thank you in advance
Victoria
--
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-6442) ScrollableDataTable displays incorrectly inside modalPanel under Opera.
by Alexander Dubovsky (JIRA)
ScrollableDataTable displays incorrectly inside modalPanel under Opera.
-----------------------------------------------------------------------
Key: RF-6442
URL: https://jira.jboss.org/jira/browse/RF-6442
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Environment: 3.3.1.SNAPSHOT
Opera 9.6
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Attachments: 47.png
Source:
<rich:modalPanel id="panelDoc" width="600" height="500"
resizeable="true">
<f:facet name="header">
<h:panelGroup>Doc</h:panelGroup>
</f:facet>
<f:facet name="controls">
<h:panelGroup>
<h:graphicImage value="/images/add.gif" style="cursor: pointer;">
<rich:componentControl for="panelDoc" operation="hide"
event="onclick" />
</h:graphicImage>
</h:panelGroup>
</f:facet>
<rich:scrollableDataTable id="scr2" value="#{sdTable.value}"
var="val2" width="300" height="400">
<rich:column>
<f:facet name="header">
<h:outputText value="MAKE" />
</f:facet>
<h:outputText value="#{val2.make}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="MODEL" />
</f:facet>
<h:outputText value="#{val2.model}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="PRICE" />
</f:facet>
<h:outputText value="#{val2.price}" />
</rich:column>
</rich:scrollableDataTable>
</rich:modalPanel>
<a4j:form>
<a4j:commandLink action="#{sdTable.method}"
oncomplete="Richfaces.showModalPanel('panelDoc');"
reRender="extDt,scr" value="show" />
<rich:scrollableDataTable id="scr1" value="#{sdTable.value}"
var="val1" width="300" height="400">
<rich:column>
<f:facet name="header">
<h:outputText value="MAKE" />
</f:facet>
<h:outputText value="#{val1.make}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="MODEL" />
</f:facet>
<h:outputText value="#{val1.model}" />
</rich:column>
<rich:column>
<f:facet name="header">
<h:outputText value="PRICE" />
</f:facet>
<h:outputText value="#{val1.price}" />
</rich:column>
</rich:scrollableDataTable>
</a4j:form>
See attached screenshot.
--
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-6260) ScrollableDataTable + DragAndDrop: rerendering of the SDT after the drop doesn't work
by Alexander Dubovsky (JIRA)
ScrollableDataTable + DragAndDrop: rerendering of the SDT after the drop doesn't work
-------------------------------------------------------------------------------------
Key: RF-6260
URL: https://jira.jboss.org/jira/browse/RF-6260
Project: RichFaces
Issue Type: Bug
Affects Versions: 3.3.1
Reporter: Alexander Dubovsky
Assignee: Nick Belaevski
Source:
<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">
<rich:dragSupport dragType="itemDD" dragValue="#{item.make}">
<rich:dndParam name="label" value="#{item.make}" />
</rich:dragSupport>
<rich:dropSupport acceptedTypes="itemDD" dropValue="#{item.make}"
dropListener="#{sdTable.processDrop}" reRender="scrolltable" />
<h:outputText value="#{item.make}" />
</a4j:outputPanel>
</rich:column>
</rich:scrollableDataTable>
processDrop:
public void processDrop(DropEvent event) {
String dragId = event.getDragValue().toString();
String dropId = event.getDropValue().toString();
Car droppedItem = null;
Car draggedItem = null;
for (Car item : value) {
if (item.getMake().equals(dropId)) {
droppedItem = item;
}
if (item.getMake().equals(dragId)) {
draggedItem = item;
}
}
if (droppedItem != null && draggedItem != null) {
value.remove(draggedItem);
value.add(value.indexOf(droppedItem), draggedItem);
}
# Drag some row and drop it in other place.
Result: dropListener was called, but table was not rerendered after that.
--
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