From richfaces-svn-commits at lists.jboss.org Mon Nov 29 13:38:41 2010 Content-Type: multipart/mixed; boundary="===============5199863628883853524==" MIME-Version: 1.0 From: richfaces-svn-commits at lists.jboss.org To: richfaces-svn-commits at lists.jboss.org Subject: [richfaces-svn-commits] JBoss Rich Faces SVN: r20211 - in sandbox/trunk/examples/dnd-demo/src/main: webapp/examples and 1 other directory. Date: Mon, 29 Nov 2010 13:38:41 -0500 Message-ID: <201011291838.oATIcfee004039@svn01.web.mwc.hst.phx2.redhat.com> --===============5199863628883853524== Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Author: abelevich Date: 2010-11-29 13:38:41 -0500 (Mon, 29 Nov 2010) New Revision: 20211 Modified: sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java sandbox/trunk/examples/dnd-demo/src/main/webapp/examples/dnd.xhtml Log: extend demo Modified: sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.j= ava =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java 20= 10-11-29 18:25:10 UTC (rev 20210) +++ sandbox/trunk/examples/dnd-demo/src/main/java/org/demo/DataBean.java 20= 10-11-29 18:38:41 UTC (rev 20211) @@ -1,5 +1,8 @@ package org.demo; = +import java.util.ArrayList; +import java.util.List; + import javax.faces.bean.ManagedBean; import javax.faces.bean.SessionScoped; = @@ -9,7 +12,52 @@ @SessionScoped public class DataBean { = + private List dropValues =3D new ArrayList(); + = + private String dragValue1 =3D "dragValue 1"; + = + private String dragValue2 =3D "dragValue 3"; + = + private String dragValue3 =3D "dragValue 3"; + = + + public List getDropValues(){ + return dropValues; + } + = + public String getDragValue1() { + return dragValue1; + } + + public void setDragValue1(String dragValue1) { + this.dragValue1 =3D dragValue1; + } + + public String getDragValue2() { + return dragValue2; + } + + public void setDragValue2(String dragValue2) { + this.dragValue2 =3D dragValue2; + } + + public String getDragValue3() { + return dragValue3; + } + + public void setDragValue3(String dragValue3) { + this.dragValue3 =3D dragValue3; + } + + public void setDropValues(List dropValues){ + this.dropValues =3D dropValues; + } + = public void processEvent(DropEvent event) { + String value =3D (String)event.getDragValue(); + dropValues.add(value); System.out.println("DataBean.processEvent()"); } + = + = } Modified: sandbox/trunk/examples/dnd-demo/src/main/webapp/examples/dnd.xhtml =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D --- sandbox/trunk/examples/dnd-demo/src/main/webapp/examples/dnd.xhtml 2010= -11-29 18:25:10 UTC (rev 20210) +++ sandbox/trunk/examples/dnd-demo/src/main/webapp/examples/dnd.xhtml 2010= -11-29 18:38:41 UTC (rev 20211) @@ -15,6 +15,7 @@ height: 200px; width: 200px; background-color: yellow; + overflow: auto; } = .draggable { @@ -51,30 +52,33 @@ + = - - -
- + + + - + + + - + + +
+ = - - + + + + + + - = - -
\ No newline at end of file --===============5199863628883853524==--