Author: lfryc(a)redhat.com
Date: 2010-12-20 07:53:38 -0500 (Mon, 20 Dec 2010)
New Revision: 20684
Added:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragSourceBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropTargetBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/simple.xhtml
Removed:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragBehaviorBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropBehaviorBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/simple.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/simple.xhtml
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropListenerBean.java
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/list.xhtml
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/simple.xhtml
Log:
drag-n-drop: sample alligned after moving from behaviors to components (RFPL-979)
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -128,9 +128,9 @@
components.put("richDataGrid", "Rich Data Grid");
components.put("richDataScroller", "Rich Data Scroller");
components.put("richDataTable", "Rich Data Table");
- components.put("richDragBehavior", "Rich Drag Behavior");
+ components.put("richDragSource", "Rich Drag Source");
components.put("richDragIndicator", "Rich Drag Indicator");
- components.put("richDropBehavior", "Rich Drop Behavior");
+ components.put("richDropTarget", "Rich Drop Target");
components.put("richDropDownMenu", "Rich Drop Down Menu");
components.put("richExtendedDataTable", "Rich Extended Data
Table");
components.put("richFileUpload", "Rich File Upload");
Deleted:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragBehaviorBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragBehaviorBean.java 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragBehaviorBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,86 +0,0 @@
-/*******************************************************************************
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- *******************************************************************************/
-package org.richfaces.tests.metamer.bean;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.List;
-
-import javax.annotation.PostConstruct;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ViewScoped;
-
-import org.richfaces.component.behavior.DragBehavior;
-import org.richfaces.tests.metamer.Attributes;
-import org.richfaces.tests.metamer.model.drag.DragValue;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
- * @version $Revision$
- */
-@ManagedBean(name = "richDragBehaviorBean")
-@ViewScoped
-public class RichDragBehaviorBean implements Serializable {
-
- private static final int DRAG_VALUES = 3;
- private static final long serialVersionUID = 4008175400649809L;
- private static Logger logger;
- private Attributes attributes;
-
- private List<DragValue> dragValues = new ArrayList<DragValue>();
-
- /**
- * Initializes the managed bean.
- */
- @PostConstruct
- public void init() {
- logger = LoggerFactory.getLogger(getClass());
- logger.debug("initializing bean " + getClass().getName());
-
- attributes = Attributes.getBehaviorAttributesFromClass(DragBehavior.class,
getClass());
-
- attributes.setAttribute("event", "mouseover");
- attributes.setAttribute("type", "drg1");
-
- for (int i = 0; i < DRAG_VALUES; i++) {
- dragValues.add(new DragValue(i + 1));
- }
- }
-
- public Attributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(Attributes attributes) {
- this.attributes = attributes;
- }
-
- public List<DragValue> getDragValues() {
- return dragValues;
- }
-
- public void setDragValues(List<DragValue> dragValues) {
- this.dragValues = dragValues;
- }
-}
Copied:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragSourceBean.java
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragBehaviorBean.java)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragSourceBean.java
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDragSourceBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,86 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+import java.util.ArrayList;
+import java.util.List;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+
+import org.richfaces.component.UIDragSource;
+import org.richfaces.tests.metamer.Attributes;
+import org.richfaces.tests.metamer.model.drag.DragValue;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richDragSourceBean")
+@ViewScoped
+public class RichDragSourceBean implements Serializable {
+
+ private static final int DRAG_VALUES = 3;
+ private static final long serialVersionUID = 4008175400649809L;
+ private static Logger logger;
+ private Attributes attributes;
+
+ private List<DragValue> dragValues = new ArrayList<DragValue>();
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getComponentAttributesFromClass(UIDragSource.class,
getClass());
+
+ attributes.setAttribute("event", "mouseover");
+ attributes.setAttribute("type", "drg1");
+
+ for (int i = 0; i < DRAG_VALUES; i++) {
+ dragValues.add(new DragValue(i + 1));
+ }
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public List<DragValue> getDragValues() {
+ return dragValues;
+ }
+
+ public void setDragValues(List<DragValue> dragValues) {
+ this.dragValues = dragValues;
+ }
+}
Deleted:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropBehaviorBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropBehaviorBean.java 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropBehaviorBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,101 +0,0 @@
-/*******************************************************************************
- * JBoss, Home of Professional Open Source
- * Copyright 2010, Red Hat, Inc. and individual contributors
- * by the @authors tag. See the copyright.txt in the distribution for a
- * full listing of individual contributors.
- *
- * This is free software; you can redistribute it and/or modify it
- * under the terms of the GNU Lesser General Public License as
- * published by the Free Software Foundation; either version 2.1 of
- * the License, or (at your option) any later version.
- *
- * This software is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
- * Lesser General Public License for more details.
- *
- * You should have received a copy of the GNU Lesser General Public
- * License along with this software; if not, write to the Free
- * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
- * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- *******************************************************************************/
-package org.richfaces.tests.metamer.bean;
-
-import java.io.Serializable;
-import java.util.Collections;
-import java.util.LinkedHashMap;
-import java.util.LinkedList;
-import java.util.List;
-import java.util.Map;
-import java.util.Map.Entry;
-
-import javax.annotation.PostConstruct;
-import javax.faces.bean.ManagedBean;
-import javax.faces.bean.ViewScoped;
-
-import org.richfaces.component.behavior.DropBehavior;
-import org.richfaces.tests.metamer.Attributes;
-import org.richfaces.tests.metamer.model.drag.DragValue;
-import org.richfaces.tests.metamer.model.drag.DropValue;
-import org.slf4j.Logger;
-import org.slf4j.LoggerFactory;
-
-/**
- * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
- * @version $Revision$
- */
-@ManagedBean(name = "richDropBehaviorBean")
-@ViewScoped
-public class RichDropBehaviorBean implements Serializable {
-
- private static final long serialVersionUID = 4008175400649809L;
- private static Logger logger;
- private Attributes attributes;
-
- private Map<DropValue, DragValue> droppedValues = new
LinkedHashMap<DropValue, DragValue>();
- private DropValue dropValue;
- private int dropValueCounter = 1;
-
- /**
- * Initializes the managed bean.
- */
- @PostConstruct
- public void init() {
- logger = LoggerFactory.getLogger(getClass());
- logger.debug("initializing bean " + getClass().getName());
-
- attributes = Attributes.getBehaviorAttributesFromClass(DropBehavior.class,
getClass());
-
- attributes.setAttribute("event", "mouseover");
- attributes.setAttribute("acceptedTypes", "drg1, drg2");
- attributes.setAttribute("render", "droppedValues");
-
- increaseDropValue();
- }
-
- public Attributes getAttributes() {
- return attributes;
- }
-
- public void setAttributes(Attributes attributes) {
- this.attributes = attributes;
- }
-
- public Map<DropValue, DragValue> getDroppedValues() {
- return droppedValues;
- }
-
- public void increaseDropValue() {
- dropValue = new DropValue(dropValueCounter++);
- }
-
- public DropValue getDropValue() {
- return dropValue;
- }
-
- public List<Entry<DropValue, DragValue>> getDroppedEntries() {
- List<Entry<DropValue, DragValue>> list = new
LinkedList<Entry<DropValue, DragValue>>(droppedValues.entrySet());
- Collections.reverse(list);
- return list;
- }
-}
Modified:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropListenerBean.java
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropListenerBean.java 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropListenerBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -39,27 +39,27 @@
private DropEvent dropEvent;
- @ManagedProperty("#{richDropBehaviorBean}")
- private RichDropBehaviorBean richDropBehaviorBean;
+ @ManagedProperty("#{richDropTargetBean}")
+ private RichDropTargetBean richDropTargetBean;
public void processDragging(DropEvent dropEvent) {
DragValue dragValue = (DragValue) dropEvent.getDragValue();
DropValue dropValue = (DropValue) dropEvent.getDropValue();
this.dropEvent = dropEvent;
- richDropBehaviorBean.increaseDropValue();
- richDropBehaviorBean.getDroppedValues().put(dropValue, dragValue);
+ richDropTargetBean.increaseDropValue();
+ richDropTargetBean.getDroppedValues().put(dropValue, dragValue);
}
public DropEvent getDropEvent() {
return dropEvent;
}
- public RichDropBehaviorBean getRichDropBehaviorBean() {
- return richDropBehaviorBean;
+ public RichDropTargetBean getRichDropTargetBean() {
+ return richDropTargetBean;
}
- public void setRichDropBehaviorBean(RichDropBehaviorBean richDropBehaviorBean) {
- this.richDropBehaviorBean = richDropBehaviorBean;
+ public void setRichDropTargetBean(RichDropTargetBean richDropBehaviorBean) {
+ this.richDropTargetBean = richDropBehaviorBean;
}
}
Copied:
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropTargetBean.java
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropBehaviorBean.java)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropTargetBean.java
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/java/org/richfaces/tests/metamer/bean/RichDropTargetBean.java 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,103 @@
+/*******************************************************************************
+ * JBoss, Home of Professional Open Source
+ * Copyright 2010, Red Hat, Inc. and individual contributors
+ * by the @authors tag. See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+ * Lesser General Public License for more details.
+ *
+ * You should have received a copy of the GNU Lesser General Public
+ * License along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ *******************************************************************************/
+package org.richfaces.tests.metamer.bean;
+
+import java.io.Serializable;
+import java.util.Collections;
+import java.util.LinkedHashMap;
+import java.util.LinkedList;
+import java.util.List;
+import java.util.Map;
+import java.util.Map.Entry;
+
+import javax.annotation.PostConstruct;
+import javax.faces.bean.ManagedBean;
+import javax.faces.bean.ViewScoped;
+
+import org.richfaces.component.UIDropTarget;
+import org.richfaces.tests.metamer.Attributes;
+import org.richfaces.tests.metamer.model.drag.DragValue;
+import org.richfaces.tests.metamer.model.drag.DropValue;
+import org.slf4j.Logger;
+import org.slf4j.LoggerFactory;
+
+/**
+ * @author <a href="mailto:lfryc@redhat.com">Lukas Fryc</a>
+ * @version $Revision$
+ */
+@ManagedBean(name = "richDropTargetBean")
+@ViewScoped
+public class RichDropTargetBean implements Serializable {
+
+ private static final long serialVersionUID = 4008175400649809L;
+ private static Logger logger;
+ private Attributes attributes;
+
+ private Map<DropValue, DragValue> droppedValues = new
LinkedHashMap<DropValue, DragValue>();
+ private DropValue dropValue;
+ private int dropValueCounter = 1;
+
+ /**
+ * Initializes the managed bean.
+ */
+ @PostConstruct
+ public void init() {
+ logger = LoggerFactory.getLogger(getClass());
+ logger.debug("initializing bean " + getClass().getName());
+
+ attributes = Attributes.getComponentAttributesFromClass(UIDropTarget.class,
getClass());
+
+ attributes.setAttribute("event", "mouseover");
+ attributes.setAttribute("acceptedTypes", "drg1, drg2");
+ attributes.setAttribute("render", "droppedValues");
+
+ attributes.remove("dropListener");
+
+ increaseDropValue();
+ }
+
+ public Attributes getAttributes() {
+ return attributes;
+ }
+
+ public void setAttributes(Attributes attributes) {
+ this.attributes = attributes;
+ }
+
+ public Map<DropValue, DragValue> getDroppedValues() {
+ return droppedValues;
+ }
+
+ public void increaseDropValue() {
+ dropValue = new DropValue(dropValueCounter++);
+ }
+
+ public DropValue getDropValue() {
+ return dropValue;
+ }
+
+ public List<Entry<DropValue, DragValue>> getDroppedEntries() {
+ List<Entry<DropValue, DragValue>> list = new
LinkedList<Entry<DropValue, DragValue>>(droppedValues.entrySet());
+ Collections.reverse(list);
+ return list;
+ }
+}
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/list.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/list.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
-
- <!--
-JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
- <ui:composition template="/templates/list.xhtml">
-
- <ui:define name="pageTitle">Rich Drag Behavior</ui:define>
-
- <ui:define name="links">
-
- <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
-
- </metamer:testPageLink>
-
- </ui:define>
-
- </ui:composition>
-
-</html>
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/simple.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/simple.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,124 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:a4j="http://richfaces.org/a4j">
-
-<!--
-JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
-<ui:composition template="/templates/template.xhtml">
- <ui:param name="componentId" value="richTree" />
-
- <ui:define name="head">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- <f:event type="preRenderView"
- listener="#{richTreeBean.preRenderView}" />
- </f:metadata>
- <h:outputStylesheet library="css" name="richDragBehavior.css"
/>
- </ui:define>
-
- <ui:define name="outOfTemplateBefore">
- </ui:define>
-
- <ui:define name="component">
-
- <rich:dragIndicator id="indicator" />
-
- <table>
- <tr>
- <td>
- <a4j:outputPanel id="draggable1" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[0]}" />
- <rich:dragBehavior event="mouseover"
- dragValue="#{richDragBehaviorBean.dragValues[0]}"
-
- dragIndicator="#{richDragBehaviorBean.attributes['dragIndicator'].value}"
- type="#{richDragBehaviorBean.attributes['type'].value}" />
- </a4j:outputPanel>
- </td>
- <td>
- <a4j:outputPanel id="draggable2" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[1]}" />
- <rich:dragBehavior event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[1]}" />
- </a4j:outputPanel>
- </td>
- <td>
- <a4j:outputPanel id="draggable3" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[2]}" />
- <rich:dragBehavior event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[2]}" />
- </a4j:outputPanel>
- </td>
- </tr>
- </table>
-
- <a4j:outputPanel id="droppable" layout="block"
styleClass="droppable">
- <rich:dropBehavior event="mouseover"
- dropValue="#{richDropBehaviorBean.dropValue}"
- listener="#{richDropListenerBean.processDragging}"
- acceptedTypes="drg1, drg2"
- render="droppedValues"
- />
-
- <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropBehaviorBean.droppedEntries}">
- <h:column>
- <h:outputText value="#{droppedValue.key}" />
- </h:column>
- <h:column>
- <h:outputText value="#{droppedValue.value}" />
- </h:column>
- </h:dataTable>
- </a4j:outputPanel>
-
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <a4j:outputPanel ajaxRendered="true">
- <h:panelGrid columns="2">
- <h:outputLabel value="Drop Event:" rendered="#{not empty
richDropListenerBean.dropEvent}" />
- <h:panelGroup rendered="#{not empty
richDropListenerBean.dropEvent}">
- <h:panelGrid columns="2">
- <h:outputLabel value="clientId:" />
- <h:outputText
value="#{richDropListenerBean.dropEvent.component.clientId}" />
-
- <h:outputLabel value="Drag Value:" />
- <h:outputText value="#{richDropListenerBean.dropEvent.dragValue}"
/>
-
- <h:outputLabel value="Drop Value:" />
- <h:outputText value="#{richDropListenerBean.dropEvent.dropValue}"
/>
- </h:panelGrid>
- </h:panelGroup>
- </h:panelGrid>
- </a4j:outputPanel>
-
- <metamer:attributes value="#{richDragBehaviorBean.attributes}"
id="attributes" />
- </ui:define>
-
-</ui:composition>
-</html>
\ No newline at end of file
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/list.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/list.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -32,7 +32,8 @@
<ui:define name="links">
<metamer:testPageLink id="simple" outcome="simple"
value="Simple">
-
+ <div>The simple <b>rich:dropTarget</b> component tied to
target component.</div>
+ <div>After drop to target, details of event appears.</div>
</metamer:testPageLink>
</ui:define>
Modified:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/simple.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragIndicator/simple.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -60,36 +60,36 @@
<tr>
<td>
<a4j:outputPanel id="draggable1" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[0]}" />
- <rich:dragBehavior event="mouseover"
- dragValue="#{richDragBehaviorBean.dragValues[0]}"
+ <h:outputText value="#{richDragSourceBean.dragValues[0]}" />
+ <rich:dragSource event="mouseover"
+ dragValue="#{richDragSourceBean.dragValues[0]}"
type="drg1" />
</a4j:outputPanel>
</td>
<td>
<a4j:outputPanel id="draggable2" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[1]}" />
- <rich:dragBehavior event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[1]}" />
+ <h:outputText value="#{richDragSourceBean.dragValues[1]}" />
+ <rich:dragSource event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[1]}" />
</a4j:outputPanel>
</td>
<td>
<a4j:outputPanel id="draggable3" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[2]}" />
- <rich:dragBehavior event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[2]}" />
+ <h:outputText value="#{richDragSourceBean.dragValues[2]}" />
+ <rich:dragSource event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[2]}" />
</a4j:outputPanel>
</td>
</tr>
</table>
<a4j:outputPanel id="droppable" layout="block"
styleClass="droppable">
- <rich:dropBehavior event="mouseover"
- dropValue="#{richDropBehaviorBean.dropValue}"
- listener="#{richDropListenerBean.processDragging}"
+ <rich:dropTarget event="mouseover"
+ dropValue="#{richDropTargetBean.dropValue}"
+ dropListener="#{richDropListenerBean.processDragging}"
acceptedTypes="drg1, drg2"
render="droppedValues"
/>
- <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropBehaviorBean.droppedEntries}">
+ <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropTargetBean.droppedEntries}">
<h:column>
<h:outputText value="#{droppedValue}" />
</h:column>
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/list.xhtml
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/list.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/list.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/list.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,44 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Drag Source</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
+ <div>The 3 simple <b>rich:dragSource</b> components tied
to target component.</div>
+ <div>Attributes are tied to first of components.</div>
+ <div>After drop to target, details of event appears.</div>
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/simple.xhtml
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/simple.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/simple.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragSource/simple.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,124 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+ <ui:param name="componentId" value="richTree" />
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ <f:event type="preRenderView"
+ listener="#{richTreeBean.preRenderView}" />
+ </f:metadata>
+ <h:outputStylesheet library="css" name="richDragBehavior.css"
/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:dragIndicator id="indicator" />
+
+ <table>
+ <tr>
+ <td>
+ <a4j:outputPanel id="draggable1" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[0]}" />
+ <rich:dragSource event="mouseover"
+ dragValue="#{richDragSourceBean.dragValues[0]}"
+
+ dragIndicator="#{richDragSourceBean.attributes['dragIndicator'].value}"
+ type="#{richDragSourceBean.attributes['type'].value}" />
+ </a4j:outputPanel>
+ </td>
+ <td>
+ <a4j:outputPanel id="draggable2" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[1]}" />
+ <rich:dragSource event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[1]}" />
+ </a4j:outputPanel>
+ </td>
+ <td>
+ <a4j:outputPanel id="draggable3" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[2]}" />
+ <rich:dragSource event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[2]}" />
+ </a4j:outputPanel>
+ </td>
+ </tr>
+ </table>
+
+ <a4j:outputPanel id="droppable" layout="block"
styleClass="droppable">
+ <rich:dropTarget event="mouseover"
+ dropValue="#{richDropTargetBean.dropValue}"
+ dropListener="#{richDropListenerBean.processDragging}"
+ acceptedTypes="drg1, drg2"
+ render="droppedValues"
+ />
+
+ <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropTargetBean.droppedEntries}">
+ <h:column>
+ <h:outputText value="#{droppedValue.key}" />
+ </h:column>
+ <h:column>
+ <h:outputText value="#{droppedValue.value}" />
+ </h:column>
+ </h:dataTable>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:panelGrid columns="2">
+ <h:outputLabel value="Drop Event:" rendered="#{not empty
richDropListenerBean.dropEvent}" />
+ <h:panelGroup rendered="#{not empty
richDropListenerBean.dropEvent}">
+ <h:panelGrid columns="2">
+ <h:outputLabel value="clientId:" />
+ <h:outputText
value="#{richDropListenerBean.dropEvent.component.clientId}" />
+
+ <h:outputLabel value="Drag Value:" />
+ <h:outputText value="#{richDropListenerBean.dropEvent.dragValue}"
/>
+
+ <h:outputLabel value="Drop Value:" />
+ <h:outputText value="#{richDropListenerBean.dropEvent.dropValue}"
/>
+ </h:panelGrid>
+ </h:panelGroup>
+ </h:panelGrid>
+ </a4j:outputPanel>
+
+ <metamer:attributes value="#{richDragSourceBean.attributes}"
id="attributes" />
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/list.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/list.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/list.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,42 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
-
- <!--
-JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
- <ui:composition template="/templates/list.xhtml">
-
- <ui:define name="pageTitle">Rich Drop Behavior</ui:define>
-
- <ui:define name="links">
-
- <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
-
- </metamer:testPageLink>
-
- </ui:define>
-
- </ui:composition>
-
-</html>
Deleted:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/simple.xhtml
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/simple.xhtml 2010-12-20
12:27:46 UTC (rev 20683)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/simple.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -1,132 +0,0 @@
-<?xml version="1.0" encoding="UTF-8" ?>
-<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
-<html
xmlns="http://www.w3.org/1999/xhtml"
-
xmlns:h="http://java.sun.com/jsf/html"
-
xmlns:f="http://java.sun.com/jsf/core"
-
xmlns:ui="http://java.sun.com/jsf/facelets"
-
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
-
xmlns:rich="http://richfaces.org/rich"
-
xmlns:a4j="http://richfaces.org/a4j">
-
-<!--
-JBoss, Home of Professional Open Source
-Copyright 2010, Red Hat, Inc. and individual contributors
-by the @authors tag. See the copyright.txt in the distribution for a
-full listing of individual contributors.
-
-This is free software; you can redistribute it and/or modify it
-under the terms of the GNU Lesser General Public License as
-published by the Free Software Foundation; either version 2.1 of
-the License, or (at your option) any later version.
-
-This software is distributed in the hope that it will be useful,
-but WITHOUT ANY WARRANTY; without even the implied warranty of
-MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
-Lesser General Public License for more details.
-
-You should have received a copy of the GNU Lesser General Public
-License along with this software; if not, write to the Free
-Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
-02110-1301 USA, or see the FSF site:
http://www.fsf.org.
- -->
-
-<ui:composition template="/templates/template.xhtml">
- <ui:param name="componentId" value="richTree" />
-
- <ui:define name="head">
- <f:metadata>
- <f:viewParam name="templates"
value="#{templateBean.templates}">
- <f:converter converterId="templatesListConverter" />
- </f:viewParam>
- <f:event type="preRenderView"
- listener="#{richTreeBean.preRenderView}" />
- </f:metadata>
- <h:outputStylesheet library="css" name="richDragBehavior.css"
/>
- </ui:define>
-
- <ui:define name="outOfTemplateBefore">
- </ui:define>
-
- <ui:define name="component">
-
- <rich:dragIndicator id="indicator" />
-
- <table>
- <tr>
- <td>
- <a4j:outputPanel id="draggable1" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[0]}" />
- <rich:dragBehavior event="mouseover"
- dragValue="#{richDragBehaviorBean.dragValues[0]}"
- type="drg1" />
- </a4j:outputPanel>
- </td>
- <td>
- <a4j:outputPanel id="draggable2" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[1]}" />
- <rich:dragBehavior event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[1]}" />
- </a4j:outputPanel>
- </td>
- <td>
- <a4j:outputPanel id="draggable3" layout="block"
styleClass="draggable">
- <h:outputText value="#{richDragBehaviorBean.dragValues[2]}" />
- <rich:dragBehavior event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragBehaviorBean.dragValues[2]}" />
- </a4j:outputPanel>
- </td>
- </tr>
- </table>
-
- <a4j:outputPanel id="droppable" layout="block"
styleClass="droppable">
- <rich:dropBehavior event="mouseover"
- dropValue="#{richDropBehaviorBean.dropValue}"
- listener="#{richDropListenerBean.processDragging}"
-
- acceptedTypes="#{richDragBehaviorBean.attributes['acceptedTypes'].value}"
- bypassUpdates="#{richDragBehaviorBean.attributes['bypassUpdates'].value}"
- data="#{richDragBehaviorBean.attributes['data'].value}"
- disabled="#{richDragBehaviorBean.attributes['disabled'].value}"
- execute="#{richDragBehaviorBean.attributes['execute'].value}"
- immediate="#{richDragBehaviorBean.attributes['immediate'].value}"
- limitRender="#{richDragBehaviorBean.attributes['limitRender'].value}"
- onbeforedomupdate="#{richDragBehaviorBean.attributes['onbeforedomupdate'].value}"
- onbegin="#{richDragBehaviorBean.attributes['onbegin'].value}"
- oncomplete="#{richDragBehaviorBean.attributes['oncomplete'].value}"
- onerror="#{richDragBehaviorBean.attributes['onerror'].value}"
- queueId="#{richDragBehaviorBean.attributes['queueId'].value}"
- render="#{richDragBehaviorBean.attributes['render'].value}"
- status="#{richDragBehaviorBean.attributes['status'].value}"
- />
-
- <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropBehaviorBean.droppedEntries}">
- <h:column>
- <h:outputText value="#{droppedValue}" />
- </h:column>
- </h:dataTable>
- </a4j:outputPanel>
-
- </ui:define>
-
- <ui:define name="outOfTemplateAfter">
- <a4j:outputPanel ajaxRendered="true">
- <h:panelGrid columns="2">
- <h:outputLabel value="Drop Event:" rendered="#{not empty
richDropListenerBean.dropEvent}" />
- <h:panelGroup rendered="#{not empty
richDropListenerBean.dropEvent}">
- <h:panelGrid columns="2">
- <h:outputLabel value="clientId:" />
- <h:outputText
value="#{richDropListenerBean.dropEvent.component.clientId}" />
-
- <h:outputLabel value="Drag Value:" />
- <h:outputText value="#{richDropListenerBean.dropEvent.dragValue}"
/>
-
- <h:outputLabel value="Drop Value:" />
- <h:outputText value="#{richDropListenerBean.dropEvent.dropValue}"
/>
- </h:panelGrid>
- </h:panelGroup>
- </h:panelGrid>
- </a4j:outputPanel>
-
- <metamer:attributes value="#{richDropBehaviorBean.attributes}"
id="dropBehaviorAttributes" />
- </ui:define>
-
-</ui:composition>
-</html>
\ No newline at end of file
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/list.xhtml
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/webapp/components/richDragBehavior/list.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/list.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/list.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,43 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer">
+
+ <!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+ <ui:composition template="/templates/list.xhtml">
+
+ <ui:define name="pageTitle">Rich Drop Target</ui:define>
+
+ <ui:define name="links">
+
+ <metamer:testPageLink id="simple" outcome="simple"
value="Simple">
+ <div>The simple <b>rich:dropTarget</b> component tied to
target component.</div>
+ <div>After drop to target, details of event appears.</div>
+ </metamer:testPageLink>
+
+ </ui:define>
+
+ </ui:composition>
+
+</html>
Copied:
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/simple.xhtml
(from rev 20664,
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropBehavior/simple.xhtml)
===================================================================
---
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/simple.xhtml
(rev 0)
+++
modules/tests/metamer/trunk/application/src/main/webapp/components/richDropTarget/simple.xhtml 2010-12-20
12:53:38 UTC (rev 20684)
@@ -0,0 +1,132 @@
+<?xml version="1.0" encoding="UTF-8" ?>
+<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+<html
xmlns="http://www.w3.org/1999/xhtml"
+
xmlns:h="http://java.sun.com/jsf/html"
+
xmlns:f="http://java.sun.com/jsf/core"
+
xmlns:ui="http://java.sun.com/jsf/facelets"
+
xmlns:metamer="http://java.sun.com/jsf/composite/metamer"
+
xmlns:rich="http://richfaces.org/rich"
+
xmlns:a4j="http://richfaces.org/a4j">
+
+<!--
+JBoss, Home of Professional Open Source
+Copyright 2010, Red Hat, Inc. and individual contributors
+by the @authors tag. See the copyright.txt in the distribution for a
+full listing of individual contributors.
+
+This is free software; you can redistribute it and/or modify it
+under the terms of the GNU Lesser General Public License as
+published by the Free Software Foundation; either version 2.1 of
+the License, or (at your option) any later version.
+
+This software is distributed in the hope that it will be useful,
+but WITHOUT ANY WARRANTY; without even the implied warranty of
+MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
+Lesser General Public License for more details.
+
+You should have received a copy of the GNU Lesser General Public
+License along with this software; if not, write to the Free
+Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+02110-1301 USA, or see the FSF site:
http://www.fsf.org.
+ -->
+
+<ui:composition template="/templates/template.xhtml">
+ <ui:param name="componentId" value="richTree" />
+
+ <ui:define name="head">
+ <f:metadata>
+ <f:viewParam name="templates"
value="#{templateBean.templates}">
+ <f:converter converterId="templatesListConverter" />
+ </f:viewParam>
+ <f:event type="preRenderView"
+ listener="#{richTreeBean.preRenderView}" />
+ </f:metadata>
+ <h:outputStylesheet library="css" name="richDragBehavior.css"
/>
+ </ui:define>
+
+ <ui:define name="outOfTemplateBefore">
+ </ui:define>
+
+ <ui:define name="component">
+
+ <rich:dragIndicator id="indicator" />
+
+ <table>
+ <tr>
+ <td>
+ <a4j:outputPanel id="draggable1" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[0]}" />
+ <rich:dragSource event="mouseover"
+ dragValue="#{richDragSourceBean.dragValues[0]}"
+ type="drg1" />
+ </a4j:outputPanel>
+ </td>
+ <td>
+ <a4j:outputPanel id="draggable2" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[1]}" />
+ <rich:dragSource event="mouseover" type="drg2"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[1]}" />
+ </a4j:outputPanel>
+ </td>
+ <td>
+ <a4j:outputPanel id="draggable3" layout="block"
styleClass="draggable">
+ <h:outputText value="#{richDragSourceBean.dragValues[2]}" />
+ <rich:dragSource event="mouseover" type="drg3"
dragIndicator="indicator"
dragValue="#{richDragSourceBean.dragValues[2]}" />
+ </a4j:outputPanel>
+ </td>
+ </tr>
+ </table>
+
+ <a4j:outputPanel id="droppable" layout="block"
styleClass="droppable">
+ <rich:dropTarget event="mouseover"
+ dropValue="#{richDropTargetBean.dropValue}"
+ dropListener="#{richDropListenerBean.processDragging}"
+
+ acceptedTypes="#{richDragSourceBean.attributes['acceptedTypes'].value}"
+ bypassUpdates="#{richDragSourceBean.attributes['bypassUpdates'].value}"
+ data="#{richDragSourceBean.attributes['data'].value}"
+ disabled="#{richDragSourceBean.attributes['disabled'].value}"
+ execute="#{richDragSourceBean.attributes['execute'].value}"
+ immediate="#{richDragSourceBean.attributes['immediate'].value}"
+ limitRender="#{richDragSourceBean.attributes['limitRender'].value}"
+ onbeforedomupdate="#{richDragSourceBean.attributes['onbeforedomupdate'].value}"
+ onbegin="#{richDragSourceBean.attributes['onbegin'].value}"
+ oncomplete="#{richDragSourceBean.attributes['oncomplete'].value}"
+ onerror="#{richDragSourceBean.attributes['onerror'].value}"
+ queueId="#{richDragSourceBean.attributes['queueId'].value}"
+ render="#{richDragSourceBean.attributes['render'].value}"
+ status="#{richDragSourceBean.attributes['status'].value}"
+ />
+
+ <h:dataTable id="droppedValues" var="droppedValue"
value="#{richDropTargetBean.droppedEntries}">
+ <h:column>
+ <h:outputText value="#{droppedValue}" />
+ </h:column>
+ </h:dataTable>
+ </a4j:outputPanel>
+
+ </ui:define>
+
+ <ui:define name="outOfTemplateAfter">
+ <a4j:outputPanel ajaxRendered="true">
+ <h:panelGrid columns="2">
+ <h:outputLabel value="Drop Event:" rendered="#{not empty
richDropListenerBean.dropEvent}" />
+ <h:panelGroup rendered="#{not empty
richDropListenerBean.dropEvent}">
+ <h:panelGrid columns="2">
+ <h:outputLabel value="clientId:" />
+ <h:outputText
value="#{richDropListenerBean.dropEvent.component.clientId}" />
+
+ <h:outputLabel value="Drag Value:" />
+ <h:outputText value="#{richDropListenerBean.dropEvent.dragValue}"
/>
+
+ <h:outputLabel value="Drop Value:" />
+ <h:outputText value="#{richDropListenerBean.dropEvent.dropValue}"
/>
+ </h:panelGrid>
+ </h:panelGroup>
+ </h:panelGrid>
+ </a4j:outputPanel>
+
+ <metamer:attributes value="#{richDropTargetBean.attributes}"
id="dropBehaviorAttributes" />
+ </ui:define>
+
+</ui:composition>
+</html>
\ No newline at end of file