dropSupport - method not found
hispeedsurfer Apr 19, 2007 3:53 AMhi
trying to use drag'n drop.
Use jboss-seam-1.2.1.GA seam-gen,
ajax4jsf-1.1.1-SNAPSHOT.jar
richfaces-3.0.1-20070414.000828-14.jar
tomahawk-1.1.5-SNAPSHOT.jar
Problem:
javax.faces.el.MethodNotFoundException: /specialreleaseeditor.xhtml @107,140 dropListener="#{requestlist.processDrop}": Method not found: RequestListBean:amy13-w081wv-f0ouz1k2-1-f0ov7sj1-1c.processDrop(org.ajax4jsf.dnd.event.DropEvent)
Bean and interface
@Stateful @Scope(ScopeType.CONVERSATION) @Name("requestlist") @SuppressWarnings("unchecked") public class RequestListBean extends AbstractChildListBean<Request, SpecialRelease> implements RequestList { public void processDrop(DropEvent dropEvent) { Dropzone dropzone = (Dropzone) dropEvent.getComponent(); } }
@Local public interface RequestList extends AbstractChildList<Request, SpecialRelease>{ public void processDrop(DropEvent dropEvent); }
Also tried to put DropListener to class
public class RequestListBean extends AbstractChildListBean<Request, SpecialRelease> implements DropListener, RequestList {
page
<div id="lowercontent2"> <rich:dragIndicator id="indicator"></rich:dragIndicator> <a:form id="lowerform"> <a:region id="requestlistregion" renderRegionOnly="false"> <h:panelGrid columns="2" width="99%"> <rich:panel style="width:90%"> <f:facet name="header"> <h:outputText value="Verteilerliste" /> </f:facet> <div class="recipientTable"> <div class="scroller recipientTable"> <rich:panel> <f:facet name="header"> <h:outputText value="Name"></h:outputText> </f:facet> <rich:dropSupport acceptedTypes="recipients" dropValue="recipients" dropListener="#{requestlist.processDrop}" reRender="lowerform"> </rich:dropSupport> <h:dataTable id="src2" columns="1" var="reqlist" value="#{distributionlist}"> <h:column> <h:outputText value="#{reqlist.recipient.surname} #{reqlist.recipient.forename}"></h:outputText> </h:column> </h:dataTable> </rich:panel> <a:commandLink value="Verteilerliste bearbeiten" action="#{requestlist.show}" reRender="center"> <!--f:param name="parentId" value="#{specialrelease.id}" /--> </a:commandLink> </div><!-- End scroller --> </div><!-- End recipientTable --> </rich:panel> <rich:panel style="width:90%"> <f:facet name="header"> <h:outputText value="Adressbuch (lokal)" /> </f:facet> <div class="recipientTable"> <div class="scroller recipientTable"> <rich:panel> <f:facet name="header"> <h:outputText value="Name"></h:outputText> </f:facet> <h:dataTable id="src" columns="1" var="recip" value="#{recipientlist.entries}"> <h:column> <a:outputPanel style="border:1px solid gray;padding:2px;" layout="block"> <rich:dragSupport dragIndicator=":indicator" dragType="recipients" dragValue="#{recip}"> <rich:dndParam name="label" value="#{recip.username}" /> </rich:dragSupport> <h:outputText value="#{recip.surname} #{recip.forename} #{recip.username}"></h:outputText> </a:outputPanel> </h:column> </h:dataTable> </rich:panel> <a:commandLink value="Verteilerliste bearbeiten" action="#{requestlist.show}" reRender="center"> <!--f:param name="parentId" value="#{specialrelease.id}" /--> </a:commandLink> </div><!-- End scroller --> </div><!-- End recipientTable --> </rich:panel> </h:panelGrid> </a:region><!-- End requestlistregion --> </a:form><!-- End lowerform --> </div><!-- End lowercontent -->
Is there any additional configuration to use dropSupport?
Thanks
Andi