rich:popupPanel and rich:dragSource/rich:dragIndicator
oressler Mar 25, 2013 6:17 AMHi!
I'm new here and hope this is the right place to put my question.
First of all - Thanx for this great work. Every day I'm happy with this powerful and easy to use toolset - Thank You !
My problem:
If i create a drag drop area in a simple view everything works fine. I can see the dragIndicator (if i use one) or the labeled item moving around.
If i put the same area into an rich:popupPanel the process itself works also fine, but i cant see anything moving around ( with or without dragIndicator)
Example:
<h:form>
<a4j:commandButton value="Aus Archiv wählen">
<rich:componentControl target="archivsuchepanel" operation="show"
event="click" />
</a4j:commandButton>
</h:form>
<rich:popupPanel modal="true" id="archivsuchepanel" width="1310" height="740" styleClass="cursor">
<rich:dragIndicator id="ind" acceptClass="accept" rejectClass="reject" draggingClass="default">
Drag the item to proper area..
</rich:dragIndicator>
<h:form>
<h:panelGrid columns="2" width="100%"
columnClasses="panelalign,panelalign">
<rich:panel style="width: 520px; height: 670px; overflow: auto;">
<rich:dataTable
value="#{yyyyyyyyyyyyyyyyyyyyyy}"
var="a" width="100%">
<rich:column width="80px">
<f:facet name="header">
<h:outputText value="Datum" />
</f:facet>
<a4j:outputPanel layout="block" styleClass="rf-ind-drag">
<rich:dragSource dragValue="#{a}" type="a" dragIndicator="ind" >
<h:outputText value="#{a.createdate}">
<f:convertDateTime pattern="dd.MM.yyyy" />
</h:outputText>
</rich:dragSource>
</a4j:outputPanel>
</rich:column>
</rich:dataTable>
</rich:panel>
<rich:panel styleClass="dropTargetPanel"
style="width: 620px; height: 670px; overflow: auto;">
<rich:dropTarget dropListener="#{xxxxxxxxxxxxxxxxxxxx}"
dropValue="OK" acceptedTypes="a"
render="aseltable, src, obverarcps" />
<rich:extendedDataTable value="#{vertragdata.obverp.obverarcp}"
var="obverarcp" height="640px" width="600px" id="aseltable" >
<rich:column >
<h:outputText value="#{zzzzzzzzzz}" />
</rich:column>
</rich:extendedDataTable>
</rich:panel>
</h:panelGrid>
</h:form>
<a4j:outputPanel ajaxRendered="true">
<h:messages></h:messages>
</a4j:outputPanel>
</rich:popupPanel>
Btw. All styles etc. are defined !
I testet it with
Richfaces 4.3.1. and Richfaces 4.2.3.
I already googled this issue and searched the forum, but could'nt find anything.
Pls help !
thx oliver