Problem with Statusimage of dragIndicator
thoemmes86 Apr 26, 2007 5:29 AMHallo!
I have a small problem with the dragIndicator of Richfaces.
The Drag and Drop funktion works fine but i want so see a Statusimage when I move to the finishdatatable. In the example of richfaces it works fine but in my application...
Here you can see my dragIndicator code i don't know why there is no image shown.
<htm:table width="100%" rendered="#{FoBean.MKonfigurationsManager.portalHeute}"> <htm:tr> <htm:br/> <htm:td width="1px" colspan="3"> <h:outputText value="#{language.modulaufbauVonPortalHeute}:" styleClass="TextLabelFo" style="font-weight:bold"/> </htm:td> </htm:tr> <htm:tr> <htm:td rowspan="3" width="1px" valign="top"> <rich:dragIndicator id="indicator"> <f:facet name="accept"> <h:graphicImage value="/images/animationen/iwm_process.gif"/> </f:facet> <f:facet name="reject"> <h:graphicImage value="/images/animationen/iwm_stoped.gif"/> </f:facet> <f:facet name="default"> <h:graphicImage value="/images/animationen/iwm_stoped.gif"/> </f:facet> </rich:dragIndicator> <rich:panel style="width:200px"> <f:facet name="header"> <h:outputText value="Module" /> </f:facet> <h:dataTable id="src" value="#{FoBean.MKonfigurationsManager.konfigBean.MAPortalHeuteBereiche}" var="fm" > <h:column> <a4j:outputPanel style="border:1px solid gray;padding:2px;" layout="block"> <rich:dragSupport dragIndicator="indicator" dragType="#{fm.MSDragType}" dragValue="#{fm.MSDragValue}"> <a4j:actionparam value="#{fm.MSDragValue}" name="dragValue"/> </rich:dragSupport> <h:outputText value="#{fm.MSLabel}" styleClass="TextLabelFo"></h:outputText> </a4j:outputPanel> </h:column> </h:dataTable> </rich:panel> <a4j:commandButton action="#{FoBean.MKonfigurationsManager.resetPortalHeuteModule}" value="reset" styleClass="ButtonStyle" reRender="src,topTable,leftTable,rightTable,bottomTable" /> </htm:td> <htm:td colspan="2" valign="top" align="center"> <rich:panel id="top" style="width:100%"> <f:facet name="header"> <h:outputText value="TOP" /> </f:facet> <rich:dropSupport acceptedTypes="PHModul" dropValue="top" dropListener="#{FoBean.MKonfigurationsManager.addTopTable}" reRender="topTable, src"> <rich:dndParam name="dragging"> <h:graphicImage value="/images/animationen/iwm_process.gif"/> </rich:dndParam> </rich:dropSupport> <h:dataTable id="topTable" value="#{FoBean.MKonfigurationsManager.konfigBean.MAPortalHeuteBereicheTop}" var="fm"> <h:column> <h:outputText style="text-align:center" value="#{fm.MSLabel}" styleClass="TextLabelFo"></h:outputText> </h:column> </h:dataTable> </rich:panel> </htm:td> </htm:tr> <htm:tr> <htm:td align="center" valign="top"> <rich:panel id="left" style="width:100%"> <f:facet name="header"> <h:outputText value="LEFT" /> </f:facet> <rich:dropSupport acceptedTypes="PHModul" dropValue="left" dropListener="#{FoBean.MKonfigurationsManager.addLeftTable}" reRender="leftTable, src"> <rich:dndParam name="dragging"> <h:graphicImage value="/images/animationen/iwm_process.gif"/> </rich:dndParam> </rich:dropSupport> <h:dataTable id="leftTable" value="#{FoBean.MKonfigurationsManager.konfigBean.MAPortalHeuteBereicheLeft}" var="fm"> <h:column> <h:outputText style="text-align:center" value="#{fm.MSLabel}" styleClass="TextLabelFo"></h:outputText> </h:column> </h:dataTable> </rich:panel> </htm:td> <htm:td align="center" valign="top"> <rich:panel id="right" style="width:100%"> <f:facet name="header"> <h:outputText value="RIGHT" /> </f:facet> <rich:dropSupport acceptedTypes="PHModul" dropValue="right" dropListener="#{FoBean.MKonfigurationsManager.addRightTable}" reRender="rightTable, src"> <rich:dndParam name="dragging"> <h:graphicImage value="/images/animationen/iwm_process.gif"/> </rich:dndParam> </rich:dropSupport> <h:dataTable id="rightTable" value="#{FoBean.MKonfigurationsManager.konfigBean.MAPortalHeuteBereicheRight}" var="fm"> <h:column> <h:outputText style="text-align:center" value="#{fm.MSLabel}" styleClass="TextLabelFo"></h:outputText> </h:column> </h:dataTable> </rich:panel> </htm:td> </htm:tr> <htm:tr> <htm:td colspan="2" align="center" valign="top"> <rich:panel id="bottom" style="width:100%"> <f:facet name="header"> <h:outputText value="BOTTOM" /> </f:facet> <rich:dropSupport acceptedTypes="PHModul" dropValue="bottom" dropListener="#{FoBean.MKonfigurationsManager.addBottomTable}" reRender="bottomTable, src"> <rich:dndParam name="dragging"> <h:graphicImage value="/images/animationen/iwm_process.gif"/> </rich:dndParam> </rich:dropSupport> <h:dataTable id="bottomTable" value="#{FoBean.MKonfigurationsManager.konfigBean.MAPortalHeuteBereicheBottom}" var="fm"> <h:column> <h:outputText style="text-align:center" value="#{fm.MSLabel}" styleClass="TextLabelFo"></h:outputText> </h:column> </h:dataTable> </rich:panel> </htm:td> </htm:tr> </htm:table>