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/06 04:58:47 UTC
svn commit: r663809 - in
/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom:
comparetovalidator/ convertDateTime/ csvvalidator/ isbnvalidator/
urlvalidator/
Author: lu4242
Date: Thu Jun 5 19:58:46 2008
New Revision: 663809
URL: http://svn.apache.org/viewvc?rev=663809&view=rev
Log:
allow converter and validator property hierarchy
Modified:
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/csvvalidator/CSVValidator.java
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/isbnvalidator/ISBNValidator.java
myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/urlvalidator/UrlValidator.java
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java?rev=663809&r1=663808&r2=663809&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/comparetovalidator/CompareToValidator.java Thu Jun 5 19:58:46 2008
@@ -124,11 +124,8 @@
* @JSFValidator
* name = "s:validateCompareTo"
* tagClass = "org.apache.myfaces.custom.comparetovalidator.ValidateCompareToTag"
- * tagSuperclass = "org.apache.myfaces.validator.ValidatorBaseTag"
* serialuidtag = "-8879289182242196266L"
*
- * @JSFJspProperty name = "message" inheritedTag="true" returnType = "java.lang.String" longDesc = "alternate validation error message format string"
- *
* @author Mike Kienenberger (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java?rev=663809&r1=663808&r2=663809&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/convertDateTime/DateTimeConverter.java Thu Jun 5 19:58:46 2008
@@ -19,6 +19,7 @@
package org.apache.myfaces.custom.convertDateTime;
+import java.util.Locale;
import java.util.TimeZone;
/**
@@ -29,14 +30,8 @@
*
* @JSFConverter
* name = "s:convertDateTime"
- * tagClass = "org.apache.myfaces.custom.convertDateTime.ConvertDateTimeTag"
- *
- * @JSFJspProperty name = "dateStyle" returnType = "java.lang.String" longDesc = "default|short|medium|long|full"
- * @JSFJspProperty name = "locale" returnType = "java.util.Locale" longDesc = "locale"
- * @JSFJspProperty name = "pattern" returnType = "java.lang.String" longDesc = "Custom formatting pattern"
- * @JSFJspProperty name = "timeStyle" returnType = "java.lang.String" longDesc = "default|short|medium|long|full"
- * @JSFJspProperty name = "timeZone" returnType = "java.util.TimeZone" longDesc = "timeZone"
- * @JSFJspProperty name = "type" returnType = "java.lang.String" longDesc = "date|time|both"
+ * tagClass = "org.apache.myfaces.custom.convertDateTime.ConvertDateTimeTag"
+ * tagSuperclass = "javax.faces.webapp.ConverterTag"
*
* User: treeder
* Date: Oct 28, 2005
@@ -51,4 +46,69 @@
setTimeZone(TimeZone.getDefault());
}
+ /**
+ * longDesc = "default|short|medium|long|full"
+ *
+ * @JSFProperty
+ * inheritedTag = "false"
+ */
+ public String getDateStyle()
+ {
+ return super.getDateStyle();
+ }
+
+ /**
+ * longDesc = "locale"
+ *
+ * @JSFProperty name = "locale"
+ * inheritedTag = "false"
+ */
+ public Locale getLocale()
+ {
+ return super.getLocale();
+ }
+
+ /**
+ * Custom formatting pattern
+ *
+ * @JSFProperty
+ * inheritedTag = "false"
+ */
+ public String getPattern()
+ {
+ return super.getPattern();
+ }
+
+ /**
+ * default|short|medium|long|full
+ *
+ * @JSFProperty
+ * inheritedTag = "false"
+ */
+ public String getTimeStyle()
+ {
+ return super.getTimeStyle();
+ }
+
+ /**
+ * timeZome
+ *
+ * @JSFProperty
+ * inheritedTag = "false"
+ */
+ public TimeZone getTimeZone()
+ {
+ return super.getTimeZone();
+ }
+
+ /**
+ * date|time|both
+ *
+ * @JSFProperty
+ * inheritedTag = "false"
+ */
+ public String getType()
+ {
+ return super.getType();
+ }
}
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/csvvalidator/CSVValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/csvvalidator/CSVValidator.java?rev=663809&r1=663808&r2=663809&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/csvvalidator/CSVValidator.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/csvvalidator/CSVValidator.java Thu Jun 5 19:58:46 2008
@@ -32,10 +32,8 @@
* @JSFValidator
* name = "s:validateCSV"
* tagClass = "org.apache.myfaces.custom.csvvalidator.ValidateCSVTag"
- * tagSuperclass = "org.apache.myfaces.validator.ValidatorBaseTag"
* serialuidtag = "-8874279182242196266L"
*
- * @JSFJspProperty name = "message" inheritedTag="true" returnType = "java.lang.String" longDesc = "alternate validation error message format string"
* @author Lance Frohman
*
* @version $Revision: $ $Date: $
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/isbnvalidator/ISBNValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/isbnvalidator/ISBNValidator.java?rev=663809&r1=663808&r2=663809&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/isbnvalidator/ISBNValidator.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/isbnvalidator/ISBNValidator.java Thu Jun 5 19:58:46 2008
@@ -32,10 +32,8 @@
* @JSFValidator
* name = "s:validateISBN"
* tagClass = "org.apache.myfaces.custom.isbnvalidator.ValidateISBNTag"
- * tagSuperclass = "org.apache.myfaces.validator.ValidatorBaseTag"
* serialuidtag = "5230653358032218656L"
*
- * @JSFJspProperty name = "message" inheritedTag="true" returnType = "java.lang.String" longDesc = "alternate validation error message format string"
* @author <a href="mailto:matzew@apache.org">Matthias Weßendorf</a> (latest modification by $Author$)
* @version $Revision$ $Date$
*/
Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/urlvalidator/UrlValidator.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/urlvalidator/UrlValidator.java?rev=663809&r1=663808&r2=663809&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/urlvalidator/UrlValidator.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/urlvalidator/UrlValidator.java Thu Jun 5 19:58:46 2008
@@ -33,10 +33,8 @@
* @JSFValidator
* name = "s:validateUrl"
* tagClass = "org.apache.myfaces.custom.urlvalidator.ValidateUrlTag"
- * tagSuperclass = "org.apache.myfaces.validator.ValidatorBaseTag"
* serialuidtag = "6041422002721046221L"
*
- * @JSFJspProperty name = "message" inheritedTag="true" returnType = "java.lang.String" longDesc = "alternate validation error message format string"
* @author Fabian Frederick
*
* @version $Revision: $ $Date: $