You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2010/10/12 05:44:07 UTC

svn commit: r1021614 - in /myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons: exporter/ExporterActionListenerTag.java renderOne/AbstractUIRenderOne.java

Author: lu4242
Date: Tue Oct 12 03:44:07 2010
New Revision: 1021614

URL: http://svn.apache.org/viewvc?rev=1021614&view=rev
Log:
MFCOMMONS-18 Use myfaces builder annotations instead doclets

Modified:
    myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/exporter/ExporterActionListenerTag.java
    myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/renderOne/AbstractUIRenderOne.java

Modified: myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/exporter/ExporterActionListenerTag.java
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/exporter/ExporterActionListenerTag.java?rev=1021614&r1=1021613&r2=1021614&view=diff
==============================================================================
--- myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/exporter/ExporterActionListenerTag.java (original)
+++ myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/exporter/ExporterActionListenerTag.java Tue Oct 12 03:44:07 2010
@@ -25,15 +25,17 @@ import javax.servlet.jsp.JspException;
 import javax.servlet.jsp.tagext.Tag;
 import javax.servlet.jsp.tagext.TagSupport;
 
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFJspTag;
+
 /**
  * Export datatable contents to an excel file or a pdf file.
  * 
- * @JSFJspTag
- *   name="mc:exporterActionListener"
- *   bodyContent="JSP" 
- * 
  * This class is acting as the tag handler for the Exporter ActionListener.
  */
+@JSFJspTag(
+   name="mc:exporterActionListener",
+   bodyContent="JSP",
+   tagHandler="org.apache.myfaces.commons.exporter.FaceletsExporterActionListenerTag")
 public class ExporterActionListenerTag extends TagSupport {
 
     private static final long serialVersionUID = -1455677614701939262L;

Modified: myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/renderOne/AbstractUIRenderOne.java
URL: http://svn.apache.org/viewvc/myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/renderOne/AbstractUIRenderOne.java?rev=1021614&r1=1021613&r2=1021614&view=diff
==============================================================================
--- myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/renderOne/AbstractUIRenderOne.java (original)
+++ myfaces/commons/trunk/myfaces-commons-components/src/main/java/org/apache/myfaces/commons/renderOne/AbstractUIRenderOne.java Tue Oct 12 03:44:07 2010
@@ -26,6 +26,7 @@ import javax.faces.component.UIComponent
 import javax.faces.context.FacesContext;
 
 import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFComponent;
+import org.apache.myfaces.buildtools.maven2.plugin.builder.annotation.JSFProperty;
 
 /**
  * Tag that allows rendering the first child either by index or the first
@@ -55,9 +56,9 @@ public abstract class AbstractUIRenderOn
      * or a value that can be parsed into an integer. index: A collection, 
      * array or comma-separated list of numbers. (Default: "first")
      * 
-     * @JSFProperty
      * @return the type
      */
+    @JSFProperty
     public abstract String getType();
 
     /**
@@ -72,9 +73,9 @@ public abstract class AbstractUIRenderOn
      *  renders the first rendered item. 
      *  If the type is "index", the value must be a number.      
      *   
-     * @JSFProperty
      * @return the value
      */
+    @JSFProperty
     public abstract Integer getValue();
 
     /**