myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r691856 [2/2] - in /myfaces/tomahawk/trunk: core/src/main/java/org/apache/myfaces/component/ core/src/main/java/org/apache/myfaces/component/html/ext/ core/src/main/java/org/apache/myfaces/custom/aliasbean/ core/src/main/java/org/apache/myf...
Date Thu, 04 Sep 2008 02:40:33 GMT
Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/AbstractSelectOneLanguage.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/AbstractSelectOneLanguage.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/AbstractSelectOneLanguage.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneLanguage/AbstractSelectOneLanguage.java
Wed Sep  3 19:40:30 2008
@@ -48,7 +48,7 @@
  *   name = "t:selectOneLanguage"
  *   class = "org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguage"
  *   tagClass = "org.apache.myfaces.custom.selectOneLanguage.SelectOneLanguageTag"
- * 
+ * @since 1.1.7
  * @author Sylvain Vieujot (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/AbstractSelectOneRow.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/AbstractSelectOneRow.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/AbstractSelectOneRow.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/AbstractSelectOneRow.java
Wed Sep  3 19:40:30 2008
@@ -29,7 +29,7 @@
  *   name = "t:selectOneRow"
  *   class = "org.apache.myfaces.custom.selectOneRow.SelectOneRow"
  *   tagClass = "org.apache.myfaces.custom.selectOneRow.SelectOneRowTag"
- *
+ * @since 1.1.7
  */
 public abstract class AbstractSelectOneRow extends UIInput 
     implements AlignProperty

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRenderer.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectOneRow/SelectOneRowRenderer.java
Wed Sep  3 19:40:30 2008
@@ -37,7 +37,7 @@
  *   renderKitId = "HTML_BASIC" 
  *   family = "org.apache.myfaces.SelectOneRow"
  *   type = "org.apache.myfaces.SelectOneRow"
- * 
+ * @since 1.1.7
  */
 public class SelectOneRowRenderer extends HtmlRenderer
 {

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectitems/AbstractUISelectItems.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectitems/AbstractUISelectItems.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectitems/AbstractUISelectItems.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/selectitems/AbstractUISelectItems.java
Wed Sep  3 19:40:30 2008
@@ -41,7 +41,7 @@
  *   name = "t:selectItems"
  *   class = "org.apache.myfaces.custom.selectitems.UISelectItems"
  *   tagClass = "org.apache.myfaces.custom.selectitems.SelectItemsTag"
- * 
+ * @since 1.1.7
  * @author cagatay (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/AbstractHtmlCommandSortHeader.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/AbstractHtmlCommandSortHeader.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/AbstractHtmlCommandSortHeader.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/sortheader/AbstractHtmlCommandSortHeader.java
Wed Sep  3 19:40:30 2008
@@ -50,7 +50,7 @@
  *   name = "t:commandSortHeader"
  *   class = "org.apache.myfaces.custom.sortheader.HtmlCommandSortHeader"
  *   tagClass = "org.apache.myfaces.custom.sortheader.HtmlCommandSortHeaderTag"
- * 
+ * @since 1.1.7
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/AbstractStylesheet.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/AbstractStylesheet.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/AbstractStylesheet.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/stylesheet/AbstractStylesheet.java
Wed Sep  3 19:40:30 2008
@@ -31,7 +31,7 @@
  *   name = "t:stylesheet"
  *   class = "org.apache.myfaces.custom.stylesheet.Stylesheet"
  *   tagClass = "org.apache.myfaces.custom.stylesheet.StylesheetTag"
- * 
+ * @since 1.1.7
  * @author mwessendorf (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/AbstractSubForm.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/AbstractSubForm.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/AbstractSubForm.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/AbstractSubForm.java
Wed Sep  3 19:40:30 2008
@@ -63,7 +63,7 @@
  *   class = "org.apache.myfaces.custom.subform.SubForm"
  *   tagClass = "org.apache.myfaces.custom.subform.SubFormTag"
  *   implements = "javax.faces.component.NamingContainer"
- *   
+ * @since 1.1.7
  * @author Gerald Muellan
  * @author Martin Marinschek
  *         Date: 19.01.2006

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/subform/SubFormRenderer.java
Wed Sep  3 19:40:30 2008
@@ -37,7 +37,7 @@
  *   renderKitId = "HTML_BASIC" 
  *   family = "org.apache.myfaces.SubForm"
  *   type = "org.apache.myfaces.SubForm"
- * 
+ * @since 1.1.7
  * @author Gerald Muellan
  *         Date: 19.01.2006
  *         Time: 14:01:35

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/AbstractHtmlSwapImage.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/AbstractHtmlSwapImage.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/AbstractHtmlSwapImage.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/swapimage/AbstractHtmlSwapImage.java
Wed Sep  3 19:40:30 2008
@@ -32,7 +32,7 @@
  *   name = "t:swapImage"
  *   class = "org.apache.myfaces.custom.swapimage.HtmlSwapImage"
  *   tagClass = "org.apache.myfaces.custom.swapimage.HtmlSwapImageTag"
- * 
+ * @since 1.1.7
  * @author Thomas Spiegl
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTab.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTab.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTab.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTab.java
Wed Sep  3 19:40:30 2008
@@ -35,7 +35,7 @@
  *   name = "t:panelTab"
  *   class = "org.apache.myfaces.custom.tabbedpane.HtmlPanelTab"
  *   tagClass = "org.apache.myfaces.custom.tabbedpane.HtmlPanelTabTag"
- * 
+ * @since 1.1.7
  * @author Manfred Geiler (latest modification by $Author$)
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTabbedPane.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTabbedPane.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTabbedPane.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tabbedpane/AbstractHtmlPanelTabbedPane.java
Wed Sep  3 19:40:30 2008
@@ -310,6 +310,11 @@
      *   defaultValue = "false"
      */
     public abstract boolean isServerSideTabSwitch();
+    
+    public boolean getServerSideTabSwitch()
+    {
+        return isServerSideTabSwitch();
+    }
 
     /**
      * Define if the process validation and update model phases

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/transform/AbstractXmlTransform.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/transform/AbstractXmlTransform.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/transform/AbstractXmlTransform.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/transform/AbstractXmlTransform.java
Wed Sep  3 19:40:30 2008
@@ -46,7 +46,7 @@
  *   name = "t:xmlTransform"
  *   class = "org.apache.myfaces.custom.transform.XmlTransform"
  *   tagClass = "org.apache.myfaces.custom.transform.XmlTransformTag"
- *   
+ * @since 1.1.7
  * @author Sean Schofield
  */
 public abstract class AbstractXmlTransform extends UIComponentBase

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeCheckbox.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeCheckbox.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeCheckbox.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeCheckbox.java
Wed Sep  3 19:40:30 2008
@@ -37,7 +37,7 @@
  *   name = "t:treeCheckbox"
  *   class = "org.apache.myfaces.custom.tree.HtmlTreeCheckbox"
  *   tagClass = "org.apache.myfaces.custom.tree.taglib.TreeCheckboxTag"
- *   
+ * @since 1.1.7
  * @author <a href="mailto:dlestrat@yahoo.com">David Le Strat</a>
  */
 public abstract class AbstractHtmlTreeCheckbox extends UISelectItem

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeImageCommandLink.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeImageCommandLink.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeImageCommandLink.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/AbstractHtmlTreeImageCommandLink.java
Wed Sep  3 19:40:30 2008
@@ -26,7 +26,7 @@
  *
  * @JSFComponent
  *   class = "org.apache.myfaces.custom.tree.HtmlTreeImageCommandLink"
- *   
+ * @since 1.1.7
  * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller</a>
  * @version $Revision$ $Date$
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree/taglib/AbstractTreeTag.java
Wed Sep  3 19:40:30 2008
@@ -33,7 +33,7 @@
  * <p>
  * HtmlTree tag.
  * </p>
- *
+ * @since 1.1.7
  * @author <a href="mailto:oliver@rossmueller.com">Oliver Rossmueller </a>
  * @version $Revision$ $Date: 2004/10/13 11:50:58
  */

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/AbstractHtmlTree.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/AbstractHtmlTree.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/AbstractHtmlTree.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/tree2/AbstractHtmlTree.java
Wed Sep  3 19:40:30 2008
@@ -47,7 +47,7 @@
  *   name = "t:tree2"
  *   class = "org.apache.myfaces.custom.tree2.HtmlTree"
  *   tagClass = "org.apache.myfaces.custom.tree2.TreeTag"
- *
+ * @since 1.1.7
  * @author Sean Schofield
  */
 public abstract class AbstractHtmlTree extends UITreeData

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/updateactionlistener/UpdateActionListenerTagHandler.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/updateactionlistener/UpdateActionListenerTagHandler.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/updateactionlistener/UpdateActionListenerTagHandler.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/updateactionlistener/UpdateActionListenerTagHandler.java
Wed Sep  3 19:40:30 2008
@@ -42,6 +42,7 @@
 /**
  * Tag handler for the Tomahawk UpdateActionListener tag
  * 
+ * @since 1.1.7
  * @author arobinson74
  */
 public class UpdateActionListenerTagHandler extends TagHandler

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/dateformat/SimpleDateFormatter.java
Wed Sep  3 19:40:30 2008
@@ -77,6 +77,10 @@
  * With ISO-8601, a week always starts on a monday. However many countries
  * use a different convention, starting weeks on saturday, sunday or monday.
  * This class supports setting the firstDayOfWeek.
+ * 
+ * @since 1.1.7
+ * @author Simon Kitching (latest modification by $Author: grantsmith $)
+ * @version $Revision: 472638 $ $Date: 2006-11-08 15:54:13 -0500 (Wed, 08 Nov 2006) $
  */
 public class SimpleDateFormatter
 {

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/tomahawk/util/ExternalContextUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/tomahawk/util/ExternalContextUtils.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/tomahawk/util/ExternalContextUtils.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/tomahawk/util/ExternalContextUtils.java
Wed Sep  3 19:40:30 2008
@@ -41,6 +41,8 @@
  * also provide access to some request-specific items which are not available on
  * the JSF ExternalContext.  If portlet API's are not present, this class simply 
  * handles the Servlet Request type.
+ * 
+ * @since 1.1.7
  */
 public final class ExternalContextUtils
 {

Modified: myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/tomahawk/trunk/core/src/main/resources/META-INF/componentClass11.vm Wed Sep  3
19:40:30 2008
@@ -115,7 +115,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())
@@ -181,7 +182,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
     }
@@ -191,7 +193,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
@@ -215,7 +218,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
@@ -247,7 +251,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

Modified: myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/componentClass12.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/componentClass12.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/componentClass12.vm (original)
+++ myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/componentClass12.vm Wed Sep
 3 19:40:30 2008
@@ -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

Modified: myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/tagClass12.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/tagClass12.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/tagClass12.vm (original)
+++ myfaces/tomahawk/trunk/core12/src/main/resources/META-INF/tagClass12.vm Wed Sep  3 19:40:30
2008
@@ -59,7 +59,9 @@
 #foreach( $property in $propertyList )
 #set ($field = $property.fieldName)
 #set ($type = $utils.getJspPropertyType12($property))
- 
+#if ($property.isLiteralOnly() && $property.className == "boolean")
+#set ($type = "String")
+#end
     private $type $field;
     
 #set ($var = $utils.getVariableFromName($property.name))
@@ -86,6 +88,9 @@
 #foreach( $property in $propertyList )##            1
 #set ($field = $property.fieldName)
 #set ($type = $utils.getJspPropertyType12($property))
+#if ($property.isLiteralOnly() && $property.className == "boolean")
+#set ($type = "String")
+#end
 #if ($utils.isConverter($property.className))##                   2
         if ($field != null)
         {
@@ -145,7 +150,11 @@
         if ($field != null)
         {
 #if ($property.isLiteralOnly())##                         3
+#if ($utils.isPrimitiveClass($property.className))##               4
+            comp.getAttributes().put("$property.name", ${utils.getBoxedClass($property.className)}.valueOf($field));
+#else##                                                   4
             comp.getAttributes().put("$property.name", $field);
+#end##                                                    4
 #else##                                                 3
             comp.setValueExpression("$property.name", $field);
 #end##                                                  3
@@ -159,11 +168,7 @@
         super.release();
 #foreach( $property in $propertyList )
 #set ($field = $property.fieldName)
-#if($utils.getJspPropertyType12($property) == "boolean")
-#set ($empty = "false")
-#else
 #set ($empty = "null")
-#end
         $field = $empty;
 #end
     }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/form/AbstractHtmlForm.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/form/AbstractHtmlForm.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/form/AbstractHtmlForm.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/form/AbstractHtmlForm.java
Wed Sep  3 19:40:30 2008
@@ -103,7 +103,7 @@
      *   
      * @return
      */
-    public abstract Boolean getForceId();
+    public abstract boolean isForceId();
         
     /**
      *  If false, this component will not append a '[n]' suffix 
@@ -118,6 +118,6 @@
      *   
      * @return
      */
-    public abstract Boolean getForceIdIndex();
+    public abstract boolean isForceIdIndex();
         
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/outputlinkdynamic/AbstractOutputLinkDynamic.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/outputlinkdynamic/AbstractOutputLinkDynamic.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/outputlinkdynamic/AbstractOutputLinkDynamic.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/outputlinkdynamic/AbstractOutputLinkDynamic.java
Wed Sep  3 19:40:30 2008
@@ -176,9 +176,9 @@
      *   
      * @return
      */
-    public abstract Boolean getForceId();
+    public abstract boolean isForceId();
     
-    public abstract void setForceId(Boolean forceId);
+    public abstract void setForceId(boolean forceId);
     
     /**
      *  If false, this component will not append a '[n]' suffix 
@@ -193,8 +193,8 @@
      *   
      * @return
      */
-    public abstract Boolean getForceIdIndex();
+    public abstract boolean isForceIdIndex();
     
-    public abstract void setForceIdIndex(Boolean forceIdIndex);
+    public abstract void setForceIdIndex(boolean forceIdIndex);
     
 }

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/AbstractInputSuggest.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/AbstractInputSuggest.java?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/AbstractInputSuggest.java
(original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/suggest/AbstractInputSuggest.java
Wed Sep  3 19:40:30 2008
@@ -48,9 +48,9 @@
      *   defaultValue = "false"
      * @return  the new forceId value
      */
-    public abstract Boolean getForceId();
+    public abstract boolean isForceId();
     
-    public abstract void setForceId(Boolean forceId);
+    public abstract void setForceId(boolean forceId);
 
     /**
      * Gets If false, this component will not append a '[n]' suffix (where 'n' is the row
index) to components
@@ -62,7 +62,7 @@
      *   defaultValue = "true"
      * @return  the new forceIdIndex value
      */
-    public abstract Boolean getForceIdIndex();
+    public abstract boolean isForceIdIndex();
 
     /**
      * Gets An alternate location to find javascript resources. If no values is specified,
javascript will be loaded from the resources directory using AddResource and ExtensionsFilter.

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/resources/META-INF/componentClass11.vm Wed
Sep  3 19:40:30 2008
@@ -115,7 +115,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())
@@ -181,7 +182,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
     }
@@ -191,7 +193,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
@@ -215,7 +218,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
@@ -247,7 +251,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

Modified: myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/componentClass12.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/componentClass12.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/componentClass12.vm
(original)
+++ myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/componentClass12.vm
Wed Sep  3 19:40:30 2008
@@ -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

Modified: myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagClass12.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagClass12.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagClass12.vm (original)
+++ myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagClass12.vm Wed Sep
 3 19:40:30 2008
@@ -59,7 +59,9 @@
 #foreach( $property in $propertyList )
 #set ($field = $property.fieldName)
 #set ($type = $utils.getJspPropertyType12($property))
- 
+#if ($property.isLiteralOnly() && $property.className == "boolean")
+#set ($type = "String")
+#end
     private $type $field;
     
 #set ($var = $utils.getVariableFromName($property.name))
@@ -86,6 +88,9 @@
 #foreach( $property in $propertyList )##            1
 #set ($field = $property.fieldName)
 #set ($type = $utils.getJspPropertyType12($property))
+#if ($property.isLiteralOnly() && $property.className == "boolean")
+#set ($type = "String")
+#end
 #if ($utils.isConverter($property.className))##                   2
         if ($field != null)
         {
@@ -145,7 +150,11 @@
         if ($field != null)
         {
 #if ($property.isLiteralOnly())##                         3
+#if ($utils.isPrimitiveClass($property.className))##               4
+            comp.getAttributes().put("$property.name", ${utils.getBoxedClass($property.className)}.valueOf($field));
+#else##                                                   4
             comp.getAttributes().put("$property.name", $field);
+#end##                                                    4
 #else##                                                 3
             comp.setValueExpression("$property.name", $field);
 #end##                                                  3
@@ -159,11 +168,7 @@
         super.release();
 #foreach( $property in $propertyList )
 #set ($field = $property.fieldName)
-#if($utils.getJspPropertyType12($property) == "boolean")
-#set ($empty = "false")
-#else
 #set ($empty = "null")
-#end
         $field = $empty;
 #end
     }

Modified: myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagValidatorClass12.vm
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagValidatorClass12.vm?rev=691856&r1=691855&r2=691856&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagValidatorClass12.vm
(original)
+++ myfaces/tomahawk/trunk/sandbox/core12/src/main/resources/META-INF/tagValidatorClass12.vm
Wed Sep  3 19:40:30 2008
@@ -122,6 +122,17 @@
                     validator.${utils.getPrefixedPropertyName("set",$property.name)}(
                         ($property.className)  ${field}Value.toString());               

                 }
+#elseif ($property.className == "java.lang.String[]")
+                try
+                {
+                    String[] value = org.apache.myfaces.commons.util.TagUtils.getStringArray(${field}.getValue(facesContext.getELContext()));
+                    validator.${utils.getPrefixedPropertyName("set",$property.name)}(value);
+                }
+                catch (java.text.ParseException pe)
+                {
+                  throw new JspException(
+                    pe.getMessage() + ": " + "Position " + pe.getErrorOffset());
+                }
 #else
                 validator.${utils.getPrefixedPropertyName("set",$property.name)}(($property.className)
 ${field}.getValue(facesContext.getELContext()));
 #end



Mime
View raw message