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 2008/06/24 05:31:22 UTC

svn commit: r671006 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java

Author: lu4242
Date: Mon Jun 23 20:31:22 2008
New Revision: 671006

URL: http://svn.apache.org/viewvc?rev=671006&view=rev
Log:
removed @JSFJspProperty for converter and added converter property with tagExcluded

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java?rev=671006&r1=671005&r2=671006&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/htmlTag/AbstractHtmlTag.java Mon Jun 23 20:31:22 2008
@@ -20,6 +20,7 @@
 
 import javax.faces.component.UIOutput;
 import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
 
 import org.apache.myfaces.component.ForceIdAware;
 import org.apache.myfaces.component.StyleAware;
@@ -47,11 +48,6 @@
  *   class = "org.apache.myfaces.custom.htmlTag.HtmlTag"
  *   tagClass = "org.apache.myfaces.custom.htmlTag.HtmlTagTag"
  *   
- * @JSFJspProperty
- *   name = "converter"
- *   returnType = "javax.faces.convert.Converter"
- *   tagExcluded = "true"
- * 
  * @author bdudney (latest modification by $Author$)
  * @version $Revision$ $Date$
  */
@@ -79,5 +75,22 @@
         if (!UserRoleUtils.isVisibleOnUserRole(this)) return false;
         return super.isRendered();
     }
-
+    
+    /**
+     * This component converts submitted values to String, so
+     * converter is not needed, not custom conversion necessary.
+     * 
+     * @JSFProperty
+     *   tagExcluded = "true"
+     */
+    public Converter getConverter()
+    {
+        return null;
+    }
+    
+    public void setConverter(Converter converter)
+    {
+        throw new UnsupportedOperationException();
+    }
+    
 }
\ No newline at end of file