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 2010/05/01 01:55:00 UTC
svn commit: r939881 - in /myfaces/tomahawk/trunk/sandbox/core20: pom.xml
src/main/resources/META-INF/componentClass20.vm
Author: lu4242
Date: Fri Apr 30 23:55:00 2010
New Revision: 939881
URL: http://svn.apache.org/viewvc?rev=939881&view=rev
Log:
update stateHolder to partialStateHolder
Modified:
myfaces/tomahawk/trunk/sandbox/core20/pom.xml
myfaces/tomahawk/trunk/sandbox/core20/src/main/resources/META-INF/componentClass20.vm
Modified: myfaces/tomahawk/trunk/sandbox/core20/pom.xml
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core20/pom.xml?rev=939881&r1=939880&r2=939881&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core20/pom.xml (original)
+++ myfaces/tomahawk/trunk/sandbox/core20/pom.xml Fri Apr 30 23:55:00 2010
@@ -137,7 +137,7 @@
<dependency>
<groupId>org.apache.myfaces.buildtools</groupId>
<artifactId>myfaces-builder-annotations</artifactId>
- <version>1.0.4</version>
+ <version>1.0.5-SNAPSHOT</version>
<scope>provided</scope>
</dependency>
<!--
@@ -232,7 +232,7 @@
<plugin>
<groupId>org.apache.myfaces.buildtools</groupId>
<artifactId>myfaces-builder-plugin</artifactId>
- <version>1.0.5</version>
+ <version>1.0.6-SNAPSHOT</version>
<executions>
<execution>
<id>unpack-tomahawk</id>
Modified: myfaces/tomahawk/trunk/sandbox/core20/src/main/resources/META-INF/componentClass20.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core20/src/main/resources/META-INF/componentClass20.vm?rev=939881&r1=939880&r2=939881&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core20/src/main/resources/META-INF/componentClass20.vm (original)
+++ myfaces/tomahawk/trunk/sandbox/core20/src/main/resources/META-INF/componentClass20.vm Fri Apr 30 23:55:00 2010
@@ -147,7 +147,7 @@ $innersource
#set ($defaultValue = false)
#end
// Property: $property.name
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#if ($property.isLiteralOnly() || $property.isTagExcluded() )
private $type $field #if($defaultValue) = $defaultValue;#{else};#{end}
@@ -328,7 +328,7 @@ $innersource
#if ($property.name == "for")
$comma $field("for")
#else
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
$comma ${field}Set
#else
$comma $field
@@ -359,7 +359,7 @@ $innersource
#set ($primitiveCount = 1) ## $propertyList.size() + 1
#foreach( $property in $propertyList )
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#set ($primitiveCount = $primitiveCount + 1)
#if($utils.isPrimitiveClass($property.className))
#set ($primitiveCount = $primitiveCount + 1)
@@ -375,7 +375,7 @@ $innersource
super.markInitialState();
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
if ($field != null &&
$field instanceof PartialStateHolder)
{
@@ -392,7 +392,7 @@ $innersource
super.clearInitialState();
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
## //Only has sense propagate this method if is initialStateMarked
if ($field != null &&
$field instanceof PartialStateHolder)
@@ -415,7 +415,7 @@ $innersource
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
#set ($type = $property.className)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#set ($arrayIndex = $arrayIndex + 1)
Object ${property.name}Saved = null;
if (!_$utils.getPrefixedPropertyName("isSet", $property.name)() &&
@@ -456,7 +456,7 @@ $innersource
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
#set ($type = $property.className)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#set ($arrayIndex = $arrayIndex + 1)
values[$arrayIndex] = ${property.name}Saved;
## StateHelper Properties does not need save and restore
@@ -473,7 +473,7 @@ $innersource
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
#set ($type = $property.className)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#set ($arrayIndex = $arrayIndex + 1)
values[$arrayIndex] = saveAttachedState(facesContext,$field);
## StateHelper Properties does not need save and restore
@@ -497,7 +497,7 @@ $innersource
#foreach( $property in $propertyList )
#set ($field = $property.fieldName)
#set ($type = $property.className)
-#if ($property.isStateHolder())
+#if ($property.isPartialStateHolder())
#set ($arrayIndex = $arrayIndex + 1)
if (values[$arrayIndex] instanceof AttachedDeltaWrapper)
{