Author: abelevich
Date: 2011-03-09 08:24:25 -0500 (Wed, 09 Mar 2011)
New Revision: 22102
Added:
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml
Modified:
branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
Log:
https://issues.jboss.org/browse/RF-10660 Taglib: drop target missing attributes. Reviewed
by Alex Kolonitsky.
Modified:
branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java
===================================================================
---
branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2011-03-09
13:13:38 UTC (rev 22101)
+++
branches/4.0.X/ui/dnd/ui/src/main/java/org/richfaces/component/AbstractDropTarget.java 2011-03-09
13:24:25 UTC (rev 22102)
@@ -42,6 +42,7 @@
family = AbstractDropTarget.COMPONENT_FAMILY,
generate = "org.richfaces.component.UIDropTarget",
renderer = @JsfRenderer(type = "org.richfaces.DropTargetRenderer"),
+ attributes = {"dropListener-props.xml"},
tag = @Tag(name="dropTarget"
,handler="org.richfaces.view.facelets.DropHandler", type = TagType.Facelets)
)
public abstract class AbstractDropTarget extends UIComponentBase {
@@ -64,6 +65,9 @@
public abstract Object getExecute();
@Attribute
+ public abstract Object getRender();
+
+ @Attribute
public abstract Object getAcceptedTypes();
@Attribute
Copied:
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml
(from rev 22088,
branches/4.0.X/ui/input/ui/src/main/resources/META-INF/cdk/attributes/fileUploadListener-props.xml)
===================================================================
---
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml
(rev 0)
+++
branches/4.0.X/ui/dnd/ui/src/main/resources/META-INF/cdk/attributes/dropListener-props.xml 2011-03-09
13:24:25 UTC (rev 22102)
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="UTF-8"?>
+<!-- JBoss, Home of Professional Open Source Copyright ${year}, 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. -->
+<cdk:properties
xmlns:cdk="http://jboss.org/schema/richfaces/cdk/extensions"
xmlns="http://java.sun.com/xml/ns/javaee">
+ <property>
+ <property-name>dropListener</property-name>
+ <property-class>javax.el.MethodExpression</property-class>
+ </property>
+</cdk:properties>