hi, i am trying to use drag and drop but it is not working with me.
does anyone a working example here is my jsp code and above the beans im using.
<%@ taglib
uri="https://ajax4jsf.dev.java.net/ajax"
prefix="a4j"%>
<%@ taglib
uri="http://richfaces.ajax4jsf.org/rich"
prefix="rich"%>
<%@ taglib
uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib
uri="http://java.sun.com/jsf/core" prefix="f" %>
<rich:dragIndicator id="indicator"></rich:dragIndicator>
<h:form id="form">
<h:panelGrid columnClasses="panelc" columns="4"
width="100%">
<rich:panel style="width:100px">
<f:facet name="header">
<h:outputText value="Source List" />
</f:facet>
<h:dataTable id="src" value="#{dndBean.frameworks}"
var="fm" >
<h:column>
<a4j:outputPanel style="border:1px solid gray;padding:2px;"
layout="block">
<rich:dragSupport dragIndicator=":indicator"
dragType="#{fm.family}" dragValue="#{fm}"
dragListener="#{eventBean.processDrag}">
<rich:dndParam name="label" value="#{fm.name}" />
</rich:dragSupport>
<h:outputText value="#{fm.name}"></h:outputText>
</a4j:outputPanel>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="PHP Frameworks" />
</f:facet>
<rich:dropSupport id="php" acceptedTypes="PHP"
dropValue="PHP"
dropListener="#{eventBean.processDrop}" reRender="phptable,
src">
</rich:dropSupport>
<h:dataTable id="phptable" value="#{dndBean.containerPHP}"
var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText
value=".NET Frameworks" />
</f:facet>
<rich:dropSupport id="dnet" acceptedTypes="DNET"
dropValue="DNET"
dropListener="#{eventBean.processDrop}" reRender="dnettable,
src">
</rich:dropSupport>
<h:dataTable id="dnettable" value="#{dndBean.containerDNET}"
var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="ColdFusion Frameworks" />
</f:facet>
<rich:dropSupport id="cf" acceptedTypes="CF"
dropValue="CF"
dropListener="#{eventBean.processDrop}" reRender="cftable,
src">
</rich:dropSupport>
<h:dataTable id="cftable" value="#{dndBean.containerCF}"
var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
</h:panelGrid>
<a4j:commandButton action="#{dndBean.reset}" value="Start Over"
reRender="src,phptable,cftable,dnettable" />
</h:form>
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040869#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...