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 04:23:14 UTC

svn commit: r670994 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java

Author: lu4242
Date: Mon Jun 23 19:23:14 2008
New Revision: 670994

URL: http://svn.apache.org/viewvc?rev=670994&view=rev
Log:
TOMAHAWK-1014 HTMLInputDate ignores custom converters

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java?rev=670994&r1=670993&r2=670994&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java (original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/date/AbstractHtmlInputDate.java Mon Jun 23 19:23:14 2008
@@ -27,6 +27,7 @@
 
 import javax.faces.component.html.HtmlInputText;
 import javax.faces.context.FacesContext;
+import javax.faces.convert.Converter;
 
 import org.apache.commons.lang.StringUtils;
 import org.apache.myfaces.component.AlignProperty;
@@ -333,4 +334,40 @@
      */    
     public abstract boolean isDisabled();
 
+    /**
+     * This component converts submitted values to its inner class
+     * UserData, so this method does not allow custom
+     * converters to be defined.
+     * 
+     * @JSFProperty
+     *   tagExcluded = "true"
+     */
+    public Converter getConverter()
+    {
+        return null;
+    }
+    
+    public void setConverter(Converter converter)
+    {
+        throw new UnsupportedOperationException();
+    }
+    
+    /**
+     * This property comes from 1.2 UIInput, but since this
+     * component does not allow a custom converter, this
+     * should return null.
+     * 
+     * @JSFProperty
+     *   tagExcluded = "true"
+     * @return
+     */
+    public String getConverterMessage()
+    {
+        return null;
+    }
+    
+    public void setConverterMessage(String converterMessage)
+    {
+        throw new UnsupportedOperationException();
+    }
 }