[
https://issues.jboss.org/browse/RF-12671?page=com.atlassian.jira.plugin.s...
]
Juraj Húska commented on RF-12671:
----------------------------------
Verified on the user provided sample code. Therefore closing.
dropTarget does not work inside dynamic tabs when switchType is ajax
or server
------------------------------------------------------------------------------
Key: RF-12671
URL:
https://issues.jboss.org/browse/RF-12671
Project: RichFaces
Issue Type: Bug
Security Level: Public(Everyone can see)
Components: component-drag/drop
Affects Versions: 4.3.0.M3
Reporter: Ken H
Assignee: Brian Leathem
Fix For: 4.3.0.CR1
Original Estimate: 3 hours
Remaining Estimate: 3 hours
The following works fine:
{code}
<rich:tabPanel switchType="client">
<a4j:repeat value="#{bean.thingsToIterate}" var="thing">
<rich:tab header="Tab #{thing}">
<rich:panel style="width: 100px;">
<rich:dragSource dragValue="drag-#{thing}" type="term"
/>
drag #{thing}
</rich:panel>
<rich:panel style="width: 100px;">
<rich:dropTarget dropValue="drop-#{thing}"
acceptedTypes="term" dropListener="#{bean.processDrop}"
execute="@form" render="@form" />
drop #{thing}
</rich:panel>
</rich:tab>
</a4j:repeat>
</rich:tabPanel>
public void processDrop(DropEvent evt) {
log.info("processDrop called - dragVal: "+evt.getDragValue()+", dropVal:
"+evt.getDropValue());
}
{code}
However, changing the switch type to ajax or server results in processDrop not being
called. The POST data appears to be identical.
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see:
http://www.atlassian.com/software/jira