add correction for ${field}Set case and literal only
diff --git a/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass12.vm b/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass12.vm
index 72d39f8..2580c9e 100644
--- a/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass12.vm
+++ b/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass12.vm
@@ -114,7 +114,8 @@
private $type $field;
#end
-#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded() )
+#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded()
+ && !$property.isLiteralOnly() )
private boolean ${field}Set;
#if ($property.isSetMethod())
@@ -180,7 +181,8 @@
public void $utils.getPrefixedPropertyName("set", $property.name)($type $utils.getVariableFromName($property.name))
{
this.$field = $utils.getVariableFromName($property.name);
-#if ($utils.isPrimitiveClass($type) && !$property.isTagExcluded() )
+#if ($utils.isPrimitiveClass($type) && !$property.isTagExcluded()
+ && !$property.isLiteralOnly())
this.${field}Set = true;
#end
}
@@ -190,7 +192,8 @@
{
#set ($primitiveCount = $propertyList.size() + 1)
#foreach( $property in $propertyList )
-#if($utils.isPrimitiveClass($property.className))
+#if($utils.isPrimitiveClass($property.className) &&
+ !$property.isLiteralOnly())
#set ($primitiveCount = $primitiveCount + 1)
#end
#end
@@ -210,7 +213,8 @@
#else
values[$arrayIndex] = $field;
#end
-#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded())
+#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded()
+ && !$property.isLiteralOnly() )
#set ($arrayIndex = $arrayIndex + 1)
values[$arrayIndex] = Boolean.valueOf(${field}Set);
#end
@@ -242,7 +246,8 @@
#else
$field = $utils.castIfNecessary($type) values[$arrayIndex];
#end
-#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded() )
+#if($utils.isPrimitiveClass($type) && !$property.isTagExcluded()
+ && !$property.isLiteralOnly() )
#set ($arrayIndex = $arrayIndex + 1)
${field}Set = ((Boolean) values[$arrayIndex]).booleanValue();
#end