From jira-events at lists.jboss.org Mon Dec 15 14:42:58 2008 Content-Type: multipart/mixed; boundary="===============0231721178883199541==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Resolved: (RF-961) Drag'n Drop: dragValue is null, when dragging across different regions Date: Mon, 15 Dec 2008 14:42:58 -0500 Message-ID: <24701805.1229370178236.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 6971546.1190128931008.JavaMail.jira@cloud.prod.atl2.jboss.com --===============0231721178883199541== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ https://jira.jboss.org/jira/browse/RF-961?page=3Dcom.atlassian.jira.= plugin.system.issuetabpanels:all-tabpanel ] Nick Belaevski resolved RF-961. ------------------------------- Resolution: Done Assignee: Tsikhon Kuprevich (was: Nick Belaevski) > Drag'n Drop: dragValue is null, when dragging across different regions > ---------------------------------------------------------------------- > > Key: RF-961 > URL: https://jira.jboss.org/jira/browse/RF-961 > Project: RichFaces > Issue Type: Bug > Components: planning_all > Affects Versions: 3.1.0 > Reporter: Maksim Kaszynski > Assignee: Tsikhon Kuprevich > Fix For: 3.3.0 > > Original Estimate: 1 day > Remaining Estimate: 1 day > > On the following page, dragValue is null. > In terms of JSF concepts, everything is correct - other regions just don'= t get processed. > maybe, we should hack it in some way. > <%@ taglib uri=3D"http://java.sun.com/jsf/html" prefix=3D"h"%> > <%@ taglib uri=3D"http://java.sun.com/jsf/core" prefix=3D"f"%> > <%@ taglib uri=3D"http://richfaces.org/a4j" prefix=3D"a4j"%> > <%@ taglib uri=3D"http://labs.jboss.com/jbossrichfaces/ui/drag-drop" pref= ix=3D"rich"%> > <%@ taglib uri=3D"http://labs.jboss.com/jbossrichfaces/ui/panel" prefix= =3D"p"%> > <%@ taglib uri=3D"http://labs.jboss.com/jbossrichfaces/ui/dataTable" pref= ix=3D"t"%> > > > > > >
> > > > > > > > dragValue=3D"#{item}"> > > > > > > > > > > > dropListener=3D"#{WeaponDropListener.processDrop}" > dropValue=3D"#{PjCreationDataBean.selectedItems}" reRender=3D"sItems= "> > > value=3D"#{PjCreationDataBean.selectedItems}" var=3D"item"> > > > > > > > > > >
> > > > > public class WeaponDropListener implements DropListener{ > = > public void processDrop(DropEvent event) { > Dropzone dropZone =3D (Dropzone) event.getComponent(); > ArrayList selected =3D (ArrayList) dropZone.getDropValu= e(); > System.err.print(selected.size()); > Object ob =3D event.getDragValue(); > System.out.println("DragValue " + event.getDragValue()); > System.out.println("DropValue " + event.getDropValue()); > if(ob =3D=3D null) > System.err.print("objeto nulo"); > selected.add((InitItem) event.getDragValue()); > = > } > } -- = This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: htt= ps://jira.jboss.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============0231721178883199541==--