You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sk...@apache.org on 2008/06/19 20:43:42 UTC
svn commit: r669640 -
/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm
Author: skitching
Date: Thu Jun 19 11:43:42 2008
New Revision: 669640
URL: http://svn.apache.org/viewvc?rev=669640&view=rev
Log:
Update template to match changes in ClassMeta
Modified:
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm?rev=669640&r1=669639&r2=669640&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/validatorClass11.vm Thu Jun 19 11:43:42 2008
@@ -4,7 +4,7 @@
## Note that there are only one type of validator generation:
## * "subclass mode" (use annotated class as a parent class)
##
-## Variable $validator refers to a ComponentMeta object to process
+## Variable $validator refers to a ValidatorMeta object to process
## Variable $utils refers to an instance of MyfacesUtils.
##
## When "template mode" is being used then variable $innersource
@@ -38,10 +38,16 @@
import javax.faces.context.FacesContext;
$utils.importTagClasses($validator)
-// generated from class $validator.classSource
+#if ($validator.isTemplate())
+#set ($generatedClassParent = $validator.sourceClassParentClassName)
+#else
+#set ($generatedClassParent = $validator.sourceClassName)
+#end
+// Generated from class ${validator.sourceClassName}.
+//
// WARNING: This file was automatically generated. Do not edit it directly,
// or you will lose your changes.
-public class ${utils.getClassFromFullClass($validator.className)} extends $validator.superClassName
+public class ${utils.getClassFromFullClass($validator.className)} extends $generatedClassParent
#if ($validator.implements)
implements $validator.implements
#end