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/15 14:24:56 UTC
svn commit: r667946 - in
/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF:
componentClass11.vm componentClassMacros11.vm faces-config11.vm
myfaces_html.vm tagClass11.vm tagClassMacros11.vm xmlMacros.vm
Author: skitching
Date: Sun Jun 15 05:24:56 2008
New Revision: 667946
URL: http://svn.apache.org/viewvc?rev=667946&view=rev
Log:
Set eol-style:native
Modified:
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm (contents, props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClassMacros11.vm (props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm (contents, props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm (contents, props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm (contents, props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClassMacros11.vm (props changed)
myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/xmlMacros.vm (props changed)
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm?rev=667946&r1=667945&r2=667946&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm Sun Jun 15 05:24:56 2008
@@ -1,118 +1,118 @@
-// WARNING: This file was automatically generated. Do not edit it directly,
-// or you will lose your changes.
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package ${component.packageName};
-
-import javax.faces.component.UIComponent;
-import javax.faces.el.ValueBinding;
-import javax.faces.context.FacesContext;
-import $component.parentClassName;
-$utils.importTagClasses($component)
-
-public class ${utils.getClassFromFullClass($component.className)} extends ${utils.getClassFromFullClass($component.parentClassName)}{
-
- static public final String COMPONENT_FAMILY =
- "$component.family";
- static public final String COMPONENT_TYPE =
- "$component.type";
-
- public ${utils.getClassFromFullClass($component.className)}()
- {
-#if ($component.rendererType)
- setRendererType("$component.rendererType");
-#else
- setRendererType(null);
-#end
- }
-
- public String getFamily()
- {
- return COMPONENT_FAMILY;
- }
-
-#set ($propertyList = ${component.propertyComponentList})
-
-#foreach( $property in $propertyList )
- // Property: $property.name
-
-#end
-
- public Object saveState(FacesContext facesContext)
- {
-#set ($primitiveCount = $propertyList.size() + 1)
-#foreach( $property in $propertyList )
-#if($utils.isPrimitiveClass($property.className))
-#set ($primitiveCount = $primitiveCount + 1)
-#end
-#end
- Object[] values = new Object[$primitiveCount];
- values[0] = super.saveState(facesContext);
-#set ($arrayIndex = 0)
-#foreach( $property in $propertyList )
-#set ($field = $property.fieldName)
-#set ($type = $property.className)
-#set ($arrayIndex = $arrayIndex + 1)
-#if ($property.jspName == "validator" && $property.methodBinding )
- values[$arrayIndex] = saveAttachedState(facesContext,${field}List);
-#elseif ( $property.stateHolder )## || $utils.isConverter($type)
- values[$arrayIndex] = saveAttachedState(facesContext,$field);
-#elseif($utils.isPrimitiveClass($type))
- values[$arrayIndex] = ${utils.getBoxedClass($type)}.valueOf($field);
-#else
- values[$arrayIndex] = $field;
-#end
-#if($utils.isPrimitiveClass($type) && !$property.tagExcluded)
-#set ($arrayIndex = $arrayIndex + 1)
- values[$arrayIndex] = ${field}Set;
-#end
-#end
- }
-
- public void restoreState(FacesContext facesContext, Object state)
- {
- Object[] values = (Object[])state;
- super.restoreState(facesContext,values[0]);
-#set ($arrayIndex = 0)
-#foreach( $property in $propertyList )
-#set ($field = $property.fieldName)
-#set ($type = $property.className)
-#set ($arrayIndex = $arrayIndex + 1)
-#if ( $property.stateHolder )
-#if ($property.jspName == "validator" && $property.methodBinding )
- ${field}List = (List<Validator>) restoreAttachedState(facesContext,values[$arrayIndex]);
-#elseif ($utils.isList($type))
- $field = (List) restoreAttachedState(facesContext,values[$arrayIndex]);
-#else
- $field = $utils.castIfNecessary($type) restoreAttachedState(facesContext,values[$arrayIndex]);
-#end
-#elseif ($utils.isConverter($type))
- $field = (Converter) restoreAttachedState(facesContext,values[$arrayIndex]);
-#elseif ($utils.isPrimitiveClass($type))
- $field = ($utils.castIfNecessary($type) values[$arrayIndex]).${type}Value();
-#else
- $field = $utils.castIfNecessary($type) values[$arrayIndex];
-#end
-#if($utils.isPrimitiveClass($type) && !$property.tagExcluded.booleanValue())
-#set ($arrayIndex = $arrayIndex + 1)
- ${field}Set = ((Boolean) values[$arrayIndex]).booleanValue();
-#end
-#end
- }
-}
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package ${component.packageName};
+
+import javax.faces.component.UIComponent;
+import javax.faces.el.ValueBinding;
+import javax.faces.context.FacesContext;
+import $component.parentClassName;
+$utils.importTagClasses($component)
+
+public class ${utils.getClassFromFullClass($component.className)} extends ${utils.getClassFromFullClass($component.parentClassName)}{
+
+ static public final String COMPONENT_FAMILY =
+ "$component.family";
+ static public final String COMPONENT_TYPE =
+ "$component.type";
+
+ public ${utils.getClassFromFullClass($component.className)}()
+ {
+#if ($component.rendererType)
+ setRendererType("$component.rendererType");
+#else
+ setRendererType(null);
+#end
+ }
+
+ public String getFamily()
+ {
+ return COMPONENT_FAMILY;
+ }
+
+#set ($propertyList = ${component.propertyComponentList})
+
+#foreach( $property in $propertyList )
+ // Property: $property.name
+
+#end
+
+ public Object saveState(FacesContext facesContext)
+ {
+#set ($primitiveCount = $propertyList.size() + 1)
+#foreach( $property in $propertyList )
+#if($utils.isPrimitiveClass($property.className))
+#set ($primitiveCount = $primitiveCount + 1)
+#end
+#end
+ Object[] values = new Object[$primitiveCount];
+ values[0] = super.saveState(facesContext);
+#set ($arrayIndex = 0)
+#foreach( $property in $propertyList )
+#set ($field = $property.fieldName)
+#set ($type = $property.className)
+#set ($arrayIndex = $arrayIndex + 1)
+#if ($property.jspName == "validator" && $property.methodBinding )
+ values[$arrayIndex] = saveAttachedState(facesContext,${field}List);
+#elseif ( $property.stateHolder )## || $utils.isConverter($type)
+ values[$arrayIndex] = saveAttachedState(facesContext,$field);
+#elseif($utils.isPrimitiveClass($type))
+ values[$arrayIndex] = ${utils.getBoxedClass($type)}.valueOf($field);
+#else
+ values[$arrayIndex] = $field;
+#end
+#if($utils.isPrimitiveClass($type) && !$property.tagExcluded)
+#set ($arrayIndex = $arrayIndex + 1)
+ values[$arrayIndex] = ${field}Set;
+#end
+#end
+ }
+
+ public void restoreState(FacesContext facesContext, Object state)
+ {
+ Object[] values = (Object[])state;
+ super.restoreState(facesContext,values[0]);
+#set ($arrayIndex = 0)
+#foreach( $property in $propertyList )
+#set ($field = $property.fieldName)
+#set ($type = $property.className)
+#set ($arrayIndex = $arrayIndex + 1)
+#if ( $property.stateHolder )
+#if ($property.jspName == "validator" && $property.methodBinding )
+ ${field}List = (List<Validator>) restoreAttachedState(facesContext,values[$arrayIndex]);
+#elseif ($utils.isList($type))
+ $field = (List) restoreAttachedState(facesContext,values[$arrayIndex]);
+#else
+ $field = $utils.castIfNecessary($type) restoreAttachedState(facesContext,values[$arrayIndex]);
+#end
+#elseif ($utils.isConverter($type))
+ $field = (Converter) restoreAttachedState(facesContext,values[$arrayIndex]);
+#elseif ($utils.isPrimitiveClass($type))
+ $field = ($utils.castIfNecessary($type) values[$arrayIndex]).${type}Value();
+#else
+ $field = $utils.castIfNecessary($type) values[$arrayIndex];
+#end
+#if($utils.isPrimitiveClass($type) && !$property.tagExcluded.booleanValue())
+#set ($arrayIndex = $arrayIndex + 1)
+ ${field}Set = ((Boolean) values[$arrayIndex]).booleanValue();
+#end
+#end
+ }
+}
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClass11.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/componentClassMacros11.vm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm?rev=667946&r1=667945&r2=667946&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm Sun Jun 15 05:24:56 2008
@@ -1,75 +1,75 @@
-<?xml version="1.0" encoding="ISO-8859-1" ?>
-
-<!DOCTYPE faces-config PUBLIC
- "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
- "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
-
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-
-<faces-config xmlns="http://java.sun.com/JSF/Configuration">
-
-$baseContent
-
-#set ($componentList = ${model.getComponents()})
-#foreach( $component in $componentList )
-#if ($modelIds.contains($component.modelId)
- && !($component.className.contains("UIComponent")))
- <component>
- <component-type>$component.type</component-type>
- <component-class>$component.className</component-class>
- </component>
-#end
-#end
-#set ($converterList = ${model.getConverters()})
-#foreach( $converter in $converterList )
-#if ($modelIds.contains($converter.modelId))
- <converter>
- <converter-id>$converter.converterId</converter-id>
- <converter-class>$converter.className</converter-class>
- </converter>
-#end
-#end
-#set ($validatorList = ${model.getValidators()})
-#foreach( $validator in $validatorList )
-#if ($modelIds.contains($validator.modelId))
- <validator>
- <validator-id>$validator.validatorId</validator-id>
- <validator-class>$validator.className</validator-class>
- </validator>
-#end
-#end
-#set ($renderKitList = ${model.getRenderKits()})
-#foreach( $renderKit in $renderKitList )
- <render-kit>
- <render-kit-id>$renderKit.renderKitId</render-kit-id>
-#if ($renderKit.className)
- <render-kit-class>$renderKit.className</render-kit-class>
-#end
-#set ($rendererList = ${renderKit.getRenderers()})
-#foreach( $renderer in $rendererList )
- <renderer>
- <component-family>$renderer.componentFamily</component-family>
- <renderer-type>$renderer.rendererType</renderer-type>
- <renderer-class>$renderer.className</renderer-class>
- </renderer>
-#end
- </render-kit>
-#end
+<?xml version="1.0" encoding="ISO-8859-1" ?>
+
+<!DOCTYPE faces-config PUBLIC
+ "-//Sun Microsystems, Inc.//DTD JavaServer Faces Config 1.1//EN"
+ "http://java.sun.com/dtd/web-facesconfig_1_1.dtd">
+
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+
+<faces-config xmlns="http://java.sun.com/JSF/Configuration">
+
+$baseContent
+
+#set ($componentList = ${model.getComponents()})
+#foreach( $component in $componentList )
+#if ($modelIds.contains($component.modelId)
+ && !($component.className.contains("UIComponent")))
+ <component>
+ <component-type>$component.type</component-type>
+ <component-class>$component.className</component-class>
+ </component>
+#end
+#end
+#set ($converterList = ${model.getConverters()})
+#foreach( $converter in $converterList )
+#if ($modelIds.contains($converter.modelId))
+ <converter>
+ <converter-id>$converter.converterId</converter-id>
+ <converter-class>$converter.className</converter-class>
+ </converter>
+#end
+#end
+#set ($validatorList = ${model.getValidators()})
+#foreach( $validator in $validatorList )
+#if ($modelIds.contains($validator.modelId))
+ <validator>
+ <validator-id>$validator.validatorId</validator-id>
+ <validator-class>$validator.className</validator-class>
+ </validator>
+#end
+#end
+#set ($renderKitList = ${model.getRenderKits()})
+#foreach( $renderKit in $renderKitList )
+ <render-kit>
+ <render-kit-id>$renderKit.renderKitId</render-kit-id>
+#if ($renderKit.className)
+ <render-kit-class>$renderKit.className</render-kit-class>
+#end
+#set ($rendererList = ${renderKit.getRenderers()})
+#foreach( $renderer in $rendererList )
+ <renderer>
+ <component-family>$renderer.componentFamily</component-family>
+ <renderer-type>$renderer.rendererType</renderer-type>
+ <renderer-class>$renderer.className</renderer-class>
+ </renderer>
+#end
+ </render-kit>
+#end
</faces-config>
\ No newline at end of file
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/faces-config11.vm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm?rev=667946&r1=667945&r2=667946&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm Sun Jun 15 05:24:56 2008
@@ -1,52 +1,52 @@
-<?xml version="1.0" encoding="ISO-8859-1"?>
-<!--
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
--->
-<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
-<taglib xmlns="http://java.sun.com/JSP/TagLibraryDescriptor">
-
-$baseContent
-
-#set ($componentList = ${model.getComponents()})
-#foreach( $component in $componentList )
-#if ($modelIds.contains($component.modelId)
- && ($component.name))
-#if ($utils.getTagPrefix($component.name) == "h")
- <tag>
- <name>$utils.getTagName($component.name)</name>
- <tag-class>$component.tagClass</tag-class>
- <body-content>JSP</body-content>
- <description></description>
-
-#set ($propertyList = ${component.propertyList})
-#foreach( $property in $propertyList )
-#if (!$property.tagExcluded)
- <attribute>
- <name>$property.name</name>
- <required>$property.isRequired()</required>
- <rtexprvalue>false</rtexprvalue>
- <type>java.lang.String</type>
- <description></description>
- </attribute>
-#end
-#end
- </tag>
-#end
-#end
-#end
+<?xml version="1.0" encoding="ISO-8859-1"?>
+<!--
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+-->
+<!DOCTYPE taglib PUBLIC "-//Sun Microsystems, Inc.//DTD JSP Tag Library 1.2//EN" "http://java.sun.com/dtd/web-jsptaglibrary_1_2.dtd">
+<taglib xmlns="http://java.sun.com/JSP/TagLibraryDescriptor">
+
+$baseContent
+
+#set ($componentList = ${model.getComponents()})
+#foreach( $component in $componentList )
+#if ($modelIds.contains($component.modelId)
+ && ($component.name))
+#if ($utils.getTagPrefix($component.name) == "h")
+ <tag>
+ <name>$utils.getTagName($component.name)</name>
+ <tag-class>$component.tagClass</tag-class>
+ <body-content>JSP</body-content>
+ <description></description>
+
+#set ($propertyList = ${component.propertyList})
+#foreach( $property in $propertyList )
+#if (!$property.tagExcluded)
+ <attribute>
+ <name>$property.name</name>
+ <required>$property.isRequired()</required>
+ <rtexprvalue>false</rtexprvalue>
+ <type>java.lang.String</type>
+ <description></description>
+ </attribute>
+#end
+#end
+ </tag>
+#end
+#end
+#end
</taglib>
\ No newline at end of file
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/myfaces_html.vm
------------------------------------------------------------------------------
svn:eol-style = native
Modified: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm?rev=667946&r1=667945&r2=667946&view=diff
==============================================================================
--- myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm (original)
+++ myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm Sun Jun 15 05:24:56 2008
@@ -1,166 +1,166 @@
-// WARNING: This file was automatically generated. Do not edit it directly,
-// or you will lose your changes.
-/*
- * Licensed to the Apache Software Foundation (ASF) under one
- * or more contributor license agreements. See the NOTICE file
- * distributed with this work for additional information
- * regarding copyright ownership. The ASF licenses this file
- * to you under the Apache License, Version 2.0 (the
- * "License"); you may not use this file except in compliance
- * with the License. You may obtain a copy of the License at
- *
- * http://www.apache.org/licenses/LICENSE-2.0
- *
- * Unless required by applicable law or agreed to in writing,
- * software distributed under the License is distributed on an
- * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
- * KIND, either express or implied. See the License for the
- * specific language governing permissions and limitations
- * under the License.
- */
-package ${component.tagPackage};
-
-import javax.faces.component.UIComponent;
-import javax.faces.el.ValueBinding;
-import javax.faces.context.FacesContext;
-import ${component.tagSuperclass};
-$utils.importTagClasses($component)
-
-public class $utils.getClassFromFullClass($component.tagClass) extends ${utils.getClassFromFullClass($component.tagSuperclass)}{
-
- public $utils.getClassFromFullClass($component.tagClass)()
- {
- }
-
- public String getComponentType()
- {
-#if ($component.type)
- return "$component.type";
-#else
- return null;
-#end
- }
-
- public String getRendererType()
- {
-#if ($component.rendererType)
- return "$component.rendererType";
-#else
- return null;
-#end
- }
-
-#set ($propertyList = ${component.propertyTagList})
-#foreach( $property in $propertyList )
-#set ($field = $property.fieldName)
-#set ($type = $utils.getJspPropertyType11($property))
-
- private $type $field;
-
-#set ($var = $utils.getVariableFromName($property.name))
- public void $utils.getPrefixedPropertyName("set", $property.jspName)($type $var)
- {
- $field = $var;
- }
-#end
-
- protected void setProperties(UIComponent component)
- {
- if (!(component instanceof $component.className))
- {
- throw new IllegalArgumentException("Component "+
- component.getClass().getName() +" is no $component.className");
- }
-
- $component.className comp = ($component.className) component;
-
- super.setProperties(component);
-
- FacesContext context = getFacesContext();
-
-#foreach( $property in $propertyList )## 1
-#set ($field = $property.fieldName)
-#set ($type = $utils.getJspPropertyType11($property))
-#if ($utils.isConverter($property.className))## 2
- if ($field != null)
- {
- if (isValueReference($field))
- {
- ValueBinding vb = context.getApplication().createValueBinding($field);
- comp.setValueBinding("$property.name", vb);
- }
- else
- {
- Converter converter = getFacesContext().getApplication().createConverter($field);
- comp.setConverter(converter);
- }
- }
-#elseif ($property.isMethodBinding())## 2
- if ($field != null)
- {
-#if ($utils.isStringMethodBindingReturnType($property.methodBindingSignature))##3
- MethodBinding mb;
- if (isValueReference($field))
- {
- mb = context.getApplication().createMethodBinding(
- $field, $utils.getSignatureParams($property.methodBindingSignature));
- }
- else
- {
-#if ($property.jspName == "action")## 4
- mb = new org.apache.myfaces.shared_impl.el.SimpleActionMethodBinding($field);
-#else## 4
- throw new IllegalStateException("Invalid expression " + $field);
-#end## 4
- }
-#else## 3
- MethodBinding mb = context.getApplication().createMethodBinding(
- $field, $utils.getSignatureParams($property.methodBindingSignature));
-#end## 3
- comp.${utils.getPrefixedPropertyName("set",$property.name)}(mb);
- }
-#else## 2
- if ($field != null)
- {
-#if ($property.isLiteralOnly())## 3
-#set ($className = $utils.getPrimitiveType($property.className))
-#if ($utils.isPrimitiveClass($className))## 4
- comp.getAttributes().put("$property.name", ${utils.getBoxedClass($className)}.valueOf($field));
-#else## 4
- comp.getAttributes().put("$property.name", $field);
-#end## 4
-#else## 3
- if (isValueReference($field))
- {
- ValueBinding vb = context.getApplication().createValueBinding($field);
- comp.setValueBinding("$property.name", vb);
- }
- else
- {
-#set ($className = $utils.getPrimitiveType($property.className))
-#if ($utils.isPrimitiveClass($className))## 4
- comp.getAttributes().put("$property.name", ${utils.getBoxedClass($className)}.valueOf($field));
-#else## 4
- comp.getAttributes().put("$property.name", $field);
-#end## 4
- }
-#end## 3
- }
-#end## 2
-#end## 1
- }
-
- public void release()
- {
- super.release();
-#foreach( $property in $propertyList )
-#set ($field = $property.fieldName)
-#if($utils.getJspPropertyType11($property) == "boolean")
-#set ($empty = "false")
-#else
-#set ($empty = "null")
-#end
- $field = $empty;
-#end
- }
+// WARNING: This file was automatically generated. Do not edit it directly,
+// or you will lose your changes.
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+package ${component.tagPackage};
+
+import javax.faces.component.UIComponent;
+import javax.faces.el.ValueBinding;
+import javax.faces.context.FacesContext;
+import ${component.tagSuperclass};
+$utils.importTagClasses($component)
+
+public class $utils.getClassFromFullClass($component.tagClass) extends ${utils.getClassFromFullClass($component.tagSuperclass)}{
+
+ public $utils.getClassFromFullClass($component.tagClass)()
+ {
+ }
+
+ public String getComponentType()
+ {
+#if ($component.type)
+ return "$component.type";
+#else
+ return null;
+#end
+ }
+
+ public String getRendererType()
+ {
+#if ($component.rendererType)
+ return "$component.rendererType";
+#else
+ return null;
+#end
+ }
+
+#set ($propertyList = ${component.propertyTagList})
+#foreach( $property in $propertyList )
+#set ($field = $property.fieldName)
+#set ($type = $utils.getJspPropertyType11($property))
+
+ private $type $field;
+
+#set ($var = $utils.getVariableFromName($property.name))
+ public void $utils.getPrefixedPropertyName("set", $property.jspName)($type $var)
+ {
+ $field = $var;
+ }
+#end
+
+ protected void setProperties(UIComponent component)
+ {
+ if (!(component instanceof $component.className))
+ {
+ throw new IllegalArgumentException("Component "+
+ component.getClass().getName() +" is no $component.className");
+ }
+
+ $component.className comp = ($component.className) component;
+
+ super.setProperties(component);
+
+ FacesContext context = getFacesContext();
+
+#foreach( $property in $propertyList )## 1
+#set ($field = $property.fieldName)
+#set ($type = $utils.getJspPropertyType11($property))
+#if ($utils.isConverter($property.className))## 2
+ if ($field != null)
+ {
+ if (isValueReference($field))
+ {
+ ValueBinding vb = context.getApplication().createValueBinding($field);
+ comp.setValueBinding("$property.name", vb);
+ }
+ else
+ {
+ Converter converter = getFacesContext().getApplication().createConverter($field);
+ comp.setConverter(converter);
+ }
+ }
+#elseif ($property.isMethodBinding())## 2
+ if ($field != null)
+ {
+#if ($utils.isStringMethodBindingReturnType($property.methodBindingSignature))##3
+ MethodBinding mb;
+ if (isValueReference($field))
+ {
+ mb = context.getApplication().createMethodBinding(
+ $field, $utils.getSignatureParams($property.methodBindingSignature));
+ }
+ else
+ {
+#if ($property.jspName == "action")## 4
+ mb = new org.apache.myfaces.shared_impl.el.SimpleActionMethodBinding($field);
+#else## 4
+ throw new IllegalStateException("Invalid expression " + $field);
+#end## 4
+ }
+#else## 3
+ MethodBinding mb = context.getApplication().createMethodBinding(
+ $field, $utils.getSignatureParams($property.methodBindingSignature));
+#end## 3
+ comp.${utils.getPrefixedPropertyName("set",$property.name)}(mb);
+ }
+#else## 2
+ if ($field != null)
+ {
+#if ($property.isLiteralOnly())## 3
+#set ($className = $utils.getPrimitiveType($property.className))
+#if ($utils.isPrimitiveClass($className))## 4
+ comp.getAttributes().put("$property.name", ${utils.getBoxedClass($className)}.valueOf($field));
+#else## 4
+ comp.getAttributes().put("$property.name", $field);
+#end## 4
+#else## 3
+ if (isValueReference($field))
+ {
+ ValueBinding vb = context.getApplication().createValueBinding($field);
+ comp.setValueBinding("$property.name", vb);
+ }
+ else
+ {
+#set ($className = $utils.getPrimitiveType($property.className))
+#if ($utils.isPrimitiveClass($className))## 4
+ comp.getAttributes().put("$property.name", ${utils.getBoxedClass($className)}.valueOf($field));
+#else## 4
+ comp.getAttributes().put("$property.name", $field);
+#end## 4
+ }
+#end## 3
+ }
+#end## 2
+#end## 1
+ }
+
+ public void release()
+ {
+ super.release();
+#foreach( $property in $propertyList )
+#set ($field = $property.fieldName)
+#if($utils.getJspPropertyType11($property) == "boolean")
+#set ($empty = "false")
+#else
+#set ($empty = "null")
+#end
+ $field = $empty;
+#end
+ }
}
\ No newline at end of file
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClass11.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/tagClassMacros11.vm
------------------------------------------------------------------------------
svn:eol-style = native
Propchange: myfaces/myfaces-build-tools/trunk/maven2-plugins/myfaces-builder-plugin/src/main/resources/META-INF/xmlMacros.vm
------------------------------------------------------------------------------
svn:eol-style = native