From jira-events at lists.jboss.org Tue Sep 18 11:22:11 2007 Content-Type: multipart/mixed; boundary="===============2062195838393813269==" MIME-Version: 1.0 From: Maksim Kaszynski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Created: (RF-961) Drag'n Drop: dragValue is null, when dragging across different regions Date: Tue, 18 Sep 2007 11:22:11 -0400 Message-ID: <6971546.1190128931008.JavaMail.jira@cloud.prod.atl2.jboss.com> --===============2062195838393813269== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Drag'n Drop: dragValue is null, when dragging across different regions ---------------------------------------------------------------------- Key: RF-961 URL: http://jira.jboss.com/jira/browse/RF-961 Project: RichFaces Issue Type: Bug Affects Versions: 3.1.0 Reporter: Maksim Kaszynski Assigned To: Maksim Kaszynski Fix For: 3.2.0 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" prefix= =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" prefix= =3D"t"%>
public class WeaponDropListener implements DropListener{ = public void processDrop(DropEvent event) { Dropzone dropZone =3D (Dropzone) event.getComponent(); ArrayList selected =3D (ArrayList) dropZone.getDropValue(= ); 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= p://jira.jboss.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============2062195838393813269==--