From jira-events at lists.jboss.org Sun Nov 11 20:18:44 2007 Content-Type: multipart/mixed; boundary="===============6501380584971794422==" MIME-Version: 1.0 From: Nick Belaevski (JIRA) To: richfaces-issues at lists.jboss.org Subject: [richfaces-issues] [JBoss JIRA] Work started: (RF-961) Drag'n Drop: dragValue is null, when dragging across different regions Date: Sun, 11 Nov 2007 20:18:44 -0500 Message-ID: <11257102.1194830324590.JavaMail.jira@cloud.prod.atl2.jboss.com> In-Reply-To: 6971546.1190128931008.JavaMail.jira@cloud.prod.atl2.jboss.com --===============6501380584971794422== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable [ http://jira.jboss.com/jira/browse/RF-961?page=3Dall ] Work on RF-961 started by Nick Belaevski. > 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: Nick Belaevski > 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" 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= p://jira.jboss.com/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira =20 --===============6501380584971794422==--