[
https://issues.jboss.org/browse/RF-11786?page=com.atlassian.jira.plugin.s...
]
Brendan Healey commented on RF-11786:
-------------------------------------
It makes no difference if the subtable is initially collapsed or not,
drag won't work unless I refresh. This has been tested on the Chrome
& IE8 browsers.
dragSource within collapsed collapsibleSubTable not initially
working
---------------------------------------------------------------------
Key: RF-11786
URL:
https://issues.jboss.org/browse/RF-11786
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.1.0.Milestone4
Reporter: Brendan Healey
I have a map which is <Integer, List<SomeClass>>. I navigate to a page
containing the below fragment and push the commandButton. The map populates
with data, the dataTable is re-rendered and I see the collapsed subtables.
I expand a few of the subtables and attempt to drag a cell, but it doesn't
work. There is an error in the javascript console shown below.
I refresh the page with F5 and re-click the commandButton to populate the
map, expand a few subtables and drag and drop is working.
This process is repeatable. I wouldn't mind betting that this test case
could be simplified but I'm afraid I won't be able to test this personally.
<a4j:commandButton action="#{bean.populateMap}"
render="aTable"/>
<rich:dataTable
id="aTable"
value="#{bean.myMap.keySet().toArray()}"
var="key">
<f:facet name="header">
<rich:column
colspan="2">Rounds</rich:column>
</f:facet>
<rich:column colspan="2">
<rich:collapsibleSubTableToggler for="stable"/>
<h:outputText value="Round #{key}"/>
</rich:column>
<rich:collapsibleSubTable id="sTable"
expanded="#{false}"
value="#{bean.myMap[key]}"
var="var">
<rich:column>
<f:facet name="header">Col 1</f:facet>
<h:panelGroup id="id1"
styleClass="rf-ind-drag">
<rich:dragSource type="row"
dragIndicator="drag1"
dragValue="#{var}"/>
<rich:dropTarget acceptedTypes="row"
dropValue="#{var}"
dropListener="#{bean.dropListener}"/>
<h:outputText value="#{var.name}"/>
</h:panelGroup>
</rich:column>
<rich:column>
<f:facet name="header">Col 2</f:facet>
<h:panelGroup id="id2"
styleClass="rf-ind-drag">
<rich:dragSource type="row"
dragIndicator="drag1"
dragValue="#{var}"/>
<rich:dropTarget acceptedTypes="row"
dropValue="#{var}"
dropListener="#{bean.dropListener}"/>
<h:outputText value="#{var.name}"/>
</h:panelGroup>
</rich:column>
</rich:collapsibleSubTable>
</rich:dataTable>
<rich:dragIndicator id="drag1">
<h:panelGrid columns="2" rules="all">
<h:panelGroup>
<br/><h:outputText
value=" ~~~~~~~~ "/><br/><br/>
</h:panelGroup>
<h:panelGroup>
<br/><h:outputText
value=" ~~~~~~~~ "/><br/><br/>
</h:panelGroup>
</h:panelGrid>
</rich:dragIndicator>
Uncaught TypeError: undefined is not a function
(anonymous function)
serverEventHandler richfaces.js.xhtml:499
curry richfaces.js.xhtml:475
richfaces.createJSFEventsAdapter richfaces.js.xhtml:428
sendEvent jsf.js.xhtml:1
response jsf.js.xhtml:1
richfaces.queue.response richfaces-queue.js.xhtml:407
jsf.ajax.response richfaces-queue.js.xhtml:50
onComplete jsf.js.xhtml:1
req.xmlReq.onreadystatechange jsf.js.xhtml:1
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.jboss.org/secure/ContactAdministrators!default.jspa
For more information on JIRA, see:
http://www.atlassian.com/software/jira