You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by al...@apache.org on 2011/03/14 00:00:01 UTC

svn commit: r1081233 - in /myfaces/html5/trunk/myfaces-html5-demo/src/main: java/org/apache/myfaces/html5/demo/bean/ java/org/apache/myfaces/html5/demo/model/ webapp/resources/image/apache-project/ webapp/resources/image/team/ webapp/sections/

Author: aliok
Date: Sun Mar 13 23:00:00 2011
New Revision: 1081233

URL: http://svn.apache.org/viewvc?rev=1081233&view=rev
Log:
MyFaces Html5 Demo : Changed sport teams with Apache Projects

Added:
    myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProject.java
      - copied, changed from r1081227, myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeam.java
    myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProjectLanguage.java
      - copied, changed from r1081227, myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeamType.java
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/myfaces.png   (with props)
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/spamassassin.png   (with props)
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/subversion.png   (with props)
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/tomcat.png   (with props)
Removed:
    myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeam.java
    myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeamType.java
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/team/
Modified:
    myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/bean/DndBean.java
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd01.xhtml
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd02.xhtml
    myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd03.xhtml

Modified: myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/bean/DndBean.java
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/bean/DndBean.java?rev=1081233&r1=1081232&r2=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/bean/DndBean.java (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/bean/DndBean.java Sun Mar 13 23:00:00 2011
@@ -30,8 +30,8 @@ import javax.faces.bean.ManagedBean;
 import javax.faces.bean.ViewScoped;
 import javax.faces.event.AbortProcessingException;
 
-import org.apache.myfaces.html5.demo.model.SportsTeam;
-import org.apache.myfaces.html5.demo.model.SportsTeamType;
+import org.apache.myfaces.html5.demo.model.ApacheProject;
+import org.apache.myfaces.html5.demo.model.ApacheProjectLanguage;
 import org.apache.myfaces.html5.event.DropEvent;
 
 @ManagedBean(name = "dndBean")
@@ -42,7 +42,7 @@ public class DndBean implements Serializ
 
     private String simpleDndOutput = "Nothing dropped yet";
     private String dragAnythingOutput = "Nothing dropped yet";
-    private String teamDropOutput = "Nothing dropped yet";
+    private String projectDropOutput = "Nothing dropped yet";
 
     public void processSimpleDnd(DropEvent event) throws AbortProcessingException
     {
@@ -77,146 +77,146 @@ public class DndBean implements Serializ
         return dragAnythingOutput;
     }
 
-    private List<SportsTeam> teams;
-    private List<SportsTeam> footballTeams;
-    private List<SportsTeam> basketballTeams;
+    private List<ApacheProject> projects;
+    private List<ApacheProject> cProjects;
+    private List<ApacheProject> javaProjects;
 
     public DndBean()
     {
-        initTeams();
+        initProjects();
     }
 
-    public String initTeams()
+    public String initProjects()
     {
-        teams = new ArrayList<SportsTeam>();
-        footballTeams = new ArrayList<SportsTeam>();
-        basketballTeams = new ArrayList<SportsTeam>();
-        teams.add(new SportsTeam("fcb", "FC Barcelona", SportsTeamType.FOOTBALL));
-        teams.add(new SportsTeam("rma", "Real Madrid", SportsTeamType.FOOTBALL));
-        teams.add(new SportsTeam("lal", "LA Lakers", SportsTeamType.BASKETBALL));
-        teams.add(new SportsTeam("boc", "Boston Celtics", SportsTeamType.BASKETBALL));
+        projects = new ArrayList<ApacheProject>();
+        cProjects = new ArrayList<ApacheProject>();
+        javaProjects = new ArrayList<ApacheProject>();
+        projects.add(new ApacheProject("spamassassin", "SpamAssasin", ApacheProjectLanguage.C));
+        projects.add(new ApacheProject("subversion", "Subversion", ApacheProjectLanguage.C));
+        projects.add(new ApacheProject("myfaces", "MyFaces", ApacheProjectLanguage.JAVA));
+        projects.add(new ApacheProject("tomcat", "Tomcat", ApacheProjectLanguage.JAVA));
 
         this.simpleDndOutput = "Nothing dropped yet";
         this.dragAnythingOutput = "Nothing dropped yet";
-        this.teamDropOutput = "Nothing dropped yet";
+        this.projectDropOutput = "Nothing dropped yet";
         
         return null;
     }
 
-    public List<SportsTeam> getTeams()
+    public List<ApacheProject> getProjects()
     {
-        return teams;
+        return projects;
     }
 
     // TODO: reuse the code!
-    public void processFootballTeamDrop(DropEvent event) throws AbortProcessingException
+    public void processJavaProjectDrop(DropEvent event) throws AbortProcessingException
     {
         String param = event.getParam();
         if (param == null || param.isEmpty())
             return;
 
-        SportsTeam droppedTeam = null;
-        for (SportsTeam team : this.teams)
+        ApacheProject droppedProject = null;
+        for (ApacheProject project : this.projects)
         {
-            if (team.getId().equals(param))
+            if (project.getId().equals(param))
             {
-                droppedTeam = team;
+                droppedProject = project;
                 break;
             }
         }
 
-        if (droppedTeam == null)
+        if (droppedProject == null)
         {
-            teamDropOutput = "No team or already dropped team is dropped.";
+            projectDropOutput = "No project or already dropped project is dropped.";
             return;
         }
 
-        teams.remove(droppedTeam);
-        footballTeams.add(droppedTeam);
+        projects.remove(droppedProject);
+        javaProjects.add(droppedProject);
 
-        teamDropOutput = droppedTeam.getName() + " is moved.";
+        projectDropOutput = droppedProject.getName() + " is moved.";
     }
 
-    public void processBasketballTeamDrop(DropEvent event) throws AbortProcessingException
+    public void processCProjectDrop(DropEvent event) throws AbortProcessingException
     {
         String param = event.getParam();
         if (param == null || param.isEmpty())
             return;
 
-        SportsTeam droppedTeam = null;
-        for (SportsTeam team : this.teams)
+        ApacheProject droppedProject = null;
+        for (ApacheProject project : this.projects)
         {
-            if (team.getId().equals(param))
+            if (project.getId().equals(param))
             {
-                droppedTeam = team;
+                droppedProject = project;
                 break;
             }
         }
 
-        if (droppedTeam == null)
+        if (droppedProject == null)
         {
-            teamDropOutput = "No team or already dropped team is dropped.";
+            projectDropOutput = "No project or already dropped project is dropped.";
             return;
         }
 
-        teams.remove(droppedTeam);
-        basketballTeams.add(droppedTeam);
+        projects.remove(droppedProject);
+        cProjects.add(droppedProject);
 
-        teamDropOutput = droppedTeam.getName() + " is moved.";
+        projectDropOutput = droppedProject.getName() + " is moved.";
     }
 
-    public void processTeamDrop(DropEvent event) throws AbortProcessingException
+    public void processProjectDrop(DropEvent event) throws AbortProcessingException
     {
         String param = event.getParam();
         if (param == null || param.isEmpty())
             return;
 
-        SportsTeam droppedTeam = null;
-        for (SportsTeam team : this.footballTeams)
+        ApacheProject droppedProject = null;
+        for (ApacheProject project : this.javaProjects)
         {
-            if (team.getId().equals(param))
+            if (project.getId().equals(param))
             {
-                droppedTeam = team;
-                this.footballTeams.remove(team);
+                droppedProject = project;
+                this.javaProjects.remove(project);
                 break;
             }
         }
-        if (droppedTeam == null)
+        if (droppedProject == null)
         {
-            for (SportsTeam team : this.basketballTeams)
+            for (ApacheProject project : this.cProjects)
             {
-                if (team.getId().equals(param))
+                if (project.getId().equals(param))
                 {
-                    droppedTeam = team;
-                    this.basketballTeams.remove(team);
+                    droppedProject = project;
+                    this.cProjects.remove(project);
                     break;
                 }
             }
         }
         
-        if (droppedTeam == null)
+        if (droppedProject == null)
         {
-            teamDropOutput = "No team or already dropped team is dropped.";
+            projectDropOutput = "No project or already dropped project is dropped.";
             return;
         }
 
-        teams.add(droppedTeam);
+        projects.add(droppedProject);
 
-        teamDropOutput = droppedTeam.getName() + " is moved.";
+        projectDropOutput = droppedProject.getName() + " is moved.";
     }
 
-    public String getTeamDropOutput()
+    public String getProjectDropOutput()
     {
-        return teamDropOutput;
+        return projectDropOutput;
     }
 
-    public List<SportsTeam> getFootballTeams()
+    public List<ApacheProject> getJavaProjects()
     {
-        return footballTeams;
+        return javaProjects;
     }
 
-    public List<SportsTeam> getBasketballTeams()
+    public List<ApacheProject> getCProjects()
     {
-        return basketballTeams;
+        return cProjects;
     }
 }

Copied: myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProject.java (from r1081227, myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeam.java)
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProject.java?p2=myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProject.java&p1=myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeam.java&r1=1081227&r2=1081233&rev=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeam.java (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProject.java Sun Mar 13 23:00:00 2011
@@ -19,19 +19,17 @@
 
 package org.apache.myfaces.html5.demo.model;
 
-import org.apache.myfaces.html5.demo.model.SportsTeamType;
-
 import java.io.Serializable;
 
-public class SportsTeam implements Serializable
+public class ApacheProject implements Serializable
 {
     private static final long serialVersionUID = 1L;
 
     private String id;
     private String name;
-    private SportsTeamType type;
+    private ApacheProjectLanguage type;
 
-    public SportsTeam(String id, String name, SportsTeamType type)
+    public ApacheProject(String id, String name, ApacheProjectLanguage type)
     {
         this.id = id;
         this.name = name;
@@ -58,12 +56,12 @@ public class SportsTeam implements Seria
         this.name = name;
     }
 
-    public SportsTeamType getType()
+    public ApacheProjectLanguage getType()
     {
         return type;
     }
 
-    public void setType(SportsTeamType type)
+    public void setType(ApacheProjectLanguage type)
     {
         this.type = type;
     }
@@ -71,9 +69,9 @@ public class SportsTeam implements Seria
     @Override
     public boolean equals(Object obj)
     {
-        if (obj instanceof SportsTeam)
+        if (obj instanceof ApacheProject)
         {
-            SportsTeam other = (SportsTeam) obj;
+            ApacheProject other = (ApacheProject) obj;
             if(other.getId().equals(this.id))
                 return true;
         }

Copied: myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProjectLanguage.java (from r1081227, myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeamType.java)
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProjectLanguage.java?p2=myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProjectLanguage.java&p1=myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeamType.java&r1=1081227&r2=1081233&rev=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/SportsTeamType.java (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/java/org/apache/myfaces/html5/demo/model/ApacheProjectLanguage.java Sun Mar 13 23:00:00 2011
@@ -21,14 +21,14 @@ package org.apache.myfaces.html5.demo.mo
 
 
 
-public enum SportsTeamType
+public enum ApacheProjectLanguage
 {
 
-    FOOTBALL("F"), BASKETBALL("B");
+    JAVA("J"), C("C");
 
     private final String code;
 
-    private SportsTeamType(String code)
+    private ApacheProjectLanguage(String code)
     {
         this.code = code;
     }

Added: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/myfaces.png
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/myfaces.png?rev=1081233&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/myfaces.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/spamassassin.png
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/spamassassin.png?rev=1081233&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/spamassassin.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/subversion.png
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/subversion.png?rev=1081233&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/subversion.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Added: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/tomcat.png
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/tomcat.png?rev=1081233&view=auto
==============================================================================
Binary file - no diff available.

Propchange: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/resources/image/apache-project/tomcat.png
------------------------------------------------------------------------------
    svn:mime-type = application/octet-stream

Modified: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd01.xhtml
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd01.xhtml?rev=1081233&r1=1081232&r2=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd01.xhtml (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd01.xhtml Sun Mar 13 23:00:00 2011
@@ -58,8 +58,6 @@
 
                   .dragStarted { border: 2px solid yellow;}
                   .dragEntered { border: 4px dashed green; background-color: #88FF00;}
-		          
-		          .team { width: 250px; height: 80px; color:darkGray; border: 1px solid gray; font-size: 20px;}
               </h:outputStylesheet>
 
               <p class="sectionManual">

Modified: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd02.xhtml
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd02.xhtml?rev=1081233&r1=1081232&r2=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd02.xhtml (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd02.xhtml Sun Mar 13 23:00:00 2011
@@ -58,8 +58,6 @@
 
                   .dragStarted { border: 2px solid yellow;}
                   .dragEntered { border: 4px dashed green; background-color: #88FF00;}
-		          
-		          .team { width: 250px; height: 80px; color:darkGray; border: 1px solid gray; font-size: 20px;}
 	          </h:outputStylesheet>
 
               <p class="sectionManual">

Modified: myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd03.xhtml
URL: http://svn.apache.org/viewvc/myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd03.xhtml?rev=1081233&r1=1081232&r2=1081233&view=diff
==============================================================================
--- myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd03.xhtml (original)
+++ myfaces/html5/trunk/myfaces-html5-demo/src/main/webapp/sections/dnd03.xhtml Sun Mar 13 23:00:00 2011
@@ -54,7 +54,7 @@
                   .dragStarted { border: 2px solid yellow;}
                   .dragEntered { border: 4px dashed green; background-color: #88FF00;}
 		          
-		          .team { 
+		          .project {
 		              width: 200px; 
 	                  height: 38px; 
 	                  color:gray; 
@@ -62,7 +62,7 @@
 	                  font-size: 17px;
 	                  text-shadow: 0 3px 5px rgba(100, 100, 100, 0.5);
                   }
-		          .team img {
+		          .project img {
 		              width: 35px;
 		          }
 		          
@@ -78,72 +78,72 @@
 	                <table width="100%">
 	                    <tr>
 	                        <td align="left">
-	                              <hx:div id="teamDropZone" styleClass="dropZone03">
+	                              <hx:div id="projectDropZone" styleClass="dropZone03">
                                       <fx:effects event="dragenter" additionalStyleClassToActivate="dragEntered" duration="0.5"/>
                                       <fx:animations event="drop" duration="1s" iteration="5">
                                           <fx:animationShake rotation="15" />
                                       </fx:animations>
-	                                  <fx:dropTarget dropListener="#{dndBean.processTeamDrop}" rerender="dynamicDnDContainer" types="F,B"/>
+	                                  <fx:dropTarget dropListener="#{dndBean.processProjectDrop}" rerender="dynamicDnDContainer" types="C,J"/>
 
 	                                  <div style="padding:5px; text-align: center;">
-	                                      <h:outputText value="All Teams" />
+	                                      <h:outputText value="All Projects" />
 	                                  </div>
 	                                  
-	                                  <h:dataTable value="#{dndBean.teams}" var="team">
+	                                  <h:dataTable value="#{dndBean.projects}" var="project">
 	                                      <h:column>
-	                                          <hx:div styleClass="team">
+	                                          <hx:div styleClass="project">
                                                   <fx:effects event="dragstart" additionalStyleClassToActivate="dragStarted" duration="0.5"/>
-	                                              <fx:dragSource action="move" param="#{team.id}" dropTargetTypes="#{team.type.code}" />
-	                                              <img src="#{request.contextPath}/resources/image/team/#{team.id}.png" draggable="false" />
-	                                              <h:outputText value="#{team.name}" draggable="false"/>
+	                                              <fx:dragSource action="move" param="#{project.id}" dropTargetTypes="#{project.type.code}" />
+	                                              <img src="#{request.contextPath}/resources/image/apache-project/#{project.id}.png" draggable="false" />
+	                                              <h:outputText value="#{project.name}" draggable="false"/>
 	                                          </hx:div>
 	                                      </h:column>
 	                                  </h:dataTable>
 	                              </hx:div>
 	                        </td>
 	                        <td align="center">
-	                            <hx:div id="basketballTeamDropZone" styleClass="dropZone03">
+	                            <hx:div id="cProjectDropZone" styleClass="dropZone03">
                                      <fx:effects event="dragenter" additionalStyleClassToActivate="dragEntered" duration="0.5"/>
 	                                 <fx:animations event="drop" duration="1s" iteration="5">
                                           <fx:animationShake rotation="15" />
                                       </fx:animations>
-                                     <fx:dropTarget dropListener="#{dndBean.processBasketballTeamDrop}" rerender="dynamicDnDContainer" types="B"/>
+                                     <fx:dropTarget dropListener="#{dndBean.processCProjectDrop}" rerender="dynamicDnDContainer" types="C"/>
 	                                    
 	                                 <div style="padding:5px; text-align: center;">
-	                                    <h:outputText value="Basketball Teams" />
+	                                    <h:outputText value="C Projects" />
 	                                 </div>
 	                                             
-	                                 <h:dataTable value="#{dndBean.basketballTeams}" var="team">
+	                                 <h:dataTable value="#{dndBean.CProjects}" var="project">
 	                                      <h:column>
-	                                          <hx:div styleClass="team">
+	                                          <hx:div styleClass="project">
                                                   <fx:effects event="dragstart" additionalStyleClassToActivate="dragStarted" duration="0.5"/>
-                                                  <fx:dragSource action="move" param="#{team.id}" dropTargetTypes="#{team.type.code}" />
-	                                              <img src="#{request.contextPath}/resources/image/team/#{team.id}.png" draggable="false" />
-	                                              <h:outputText value="#{team.name}" draggable="false"/>
+                                                  <fx:dragSource action="move" param="#{project.id}" dropTargetTypes="#{project.type.code}" />
+	                                              <img src="#{request.contextPath}/resources/image/apache-project/#{project.id}.png" draggable="false" />
+	                                              <h:outputText value="#{project.name}" draggable="false"/>
 	                                          </hx:div>
 	                                      </h:column>
 	                                 </h:dataTable>
 	                             </hx:div>
 	                         </td>
 	                        <td align="right">
-	                              <hx:div id="footballTeamDropZone" styleClass="dropZone03">
+	                              <hx:div id="javaProjectDropZone" styleClass="dropZone03">
                                       <fx:effects event="dragenter" additionalStyleClassToActivate="dragEntered" duration="0.5"/>
                                       <fx:animations event="drop" duration="1s" iteration="5">
                                           <fx:animationShake rotation="15" />
                                       </fx:animations>
-	                                  <fx:dropTarget dropListener="#{dndBean.processFootballTeamDrop}" rerender="dynamicDnDContainer" types="F"/>
+	                                  <fx:dropTarget dropListener="#{dndBean.processJavaProjectDrop}" rerender="dynamicDnDContainer" types="J"/>
 	                              
 	                                  <div style="padding:5px; text-align: center;">
-	                                     <h:outputText value="Football Teams" />
+	                                     <h:outputText value="Java Projects" />
 	                                  </div>
 	                              
-	                                 <h:dataTable value="#{dndBean.footballTeams}" var="team">
+	                                 <h:dataTable value="#{dndBean.javaProjects}" var="project">
 	                                      <h:column>
-	                                          <hx:div styleClass="team">
+	                                          <hx:div styleClass="project">
                                                   <fx:effects event="dragstart" additionalStyleClassToActivate="dragStarted" duration="0.5"/>
-	                                              <fx:dragSource action="move" param="#{team.id}" dropTargetTypes="#{team.type.code}" />
-	                                              <img src="#{request.contextPath}/resources/image/team/#{team.id}.png" draggable="false" />
-	                                              <h:outputText value="#{team.name}" draggable="false"/>
+	                                              <fx:dragSource action="move" param="#{project.id}" dropTargetTypes="#{project.type.code}" />
+	                                              <img src="#{request.contextPath}/resources/image/apache-project/#{project.id}.png" draggable="false" />
+	                                              <h:outputText value="#{project.name}" draggable="false"/>
 	                                          </hx:div>
 	                                      </h:column>
 	                                 </h:dataTable>
@@ -152,13 +152,13 @@
 	                    </tr>
 	                    <tr>
 	                        <td colspan="1" align="center">
-                                <h:commandButton action="#{dndBean.initTeams}" value="Refresh Teams">
+                                <h:commandButton action="#{dndBean.initProjects}" value="Refresh Projects">
                                     <f:ajax render="@form"/>
                                 </h:commandButton>
                             </td>
 	                        <td colspan="2" align="center">
 	                            <span>Output of drop listener : </span>
-	                            <h:outputText value="#{dndBean.teamDropOutput}" id="teamDropOutput" escape="false" style="color:green; font-size:medium;"/>
+	                            <h:outputText value="#{dndBean.projectDropOutput}" id="projectDropOutput" escape="false" style="color:green; font-size:medium;"/>
 	                        </td>
 	                    </tr>
 	                </table>
@@ -168,23 +168,23 @@
                 <tr>
                     <td>
 		               <sh:sh><![CDATA[
-<h:dataTable value="#_{dndBean.teams}" var="team">
+<h:dataTable value="#_{dndBean.projects}" var="project">
    <h:column>
        <hx:div ...>
-           <fx:dragSource param="#_{team.id}" dropTargetTypes="#_{team.type.code}" />
+           <fx:dragSource param="#_{project.id}" dropTargetTypes="#_{project.type.code}" />
            ...
        </hx:div>
    </h:column>
 </h:dataTable>
 ...
-<hx:div id="basketballTeamDropZone" ...>
-   <fx:dropTarget dropListener="#_{dndBean.processBasketballTeamDrop}"
+<hx:div id="cProjectDropZone" ...>
+   <fx:dropTarget dropListener="#_{dndBean.processCProjectDrop}"
       rerender="@form" types="B"/>...
-   <!-- List dropped basketball teams into this target -->
-   <h:dataTable value="#_{dndBean.basketballTeams}" var="team">
+   <!-- List dropped C projects into this target -->
+   <h:dataTable value="#_{dndBean.CProjects}" var="project">
         <h:column>
-            <hx:div styleClass="team">...
-                <h:outputText value="#_{team.name}" .../>
+            <hx:div styleClass="project">...
+                <h:outputText value="#_{project.name}" .../>
             </hx:div>
         </h:column>
    </h:dataTable>
@@ -193,20 +193,20 @@
 	                 </td>
                     <td>
                      <sh:sh><![CDATA[
-<hx:div id="footbalTeamDropZone" ...>...
+<hx:div id="javaProjectDropZone" ...>...
    <fx:dropTarget ... types="F"/>
 </hx:div>
                      ]]></sh:sh>
 	                 <sh:sh lang="java"><![CDATA[
-public void processBasketballTeamDrop(DropEvent event)
+public void processCProjectDrop(DropEvent event)
   throws AbortProcessingException{
-  String teamId = event.getParam();
+  String projectId = event.getParam();
   ...
-  SportsTeam droppedTeam = getTeam(
-     this.basketballTeamsList, teamId);
+  ApacheProject droppedProject = getProject(
+     this.cProjectsList, projectId);
   ...
-  teams.remove(droppedTeam);
-  basketballTeams.add(droppedTeam);
+  projects.remove(droppedProject);
+  cProjects.add(droppedProject);
 }
 	                 ]]></sh:sh>
                     </td>