myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From we...@apache.org
Subject svn commit: r392438 - in /incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago: component/UITabGroup.java taglib/component/TabGroupTag.java
Date Fri, 07 Apr 2006 22:27:56 GMT
Author: weber
Date: Fri Apr  7 15:27:50 2006
New Revision: 392438

URL: http://svn.apache.org/viewcvs?rev=392438&view=rev
Log:
part of TOBAGO-1 (Clean up Tag-Classes and create appropriate UIComponent-Classes)

Modified:
    incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
    incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java

Modified: incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java?rev=392438&r1=392437&r2=392438&view=diff
==============================================================================
--- incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
(original)
+++ incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/component/UITabGroup.java
Fri Apr  7 15:27:50 2006
@@ -50,7 +50,7 @@
   private int activeIndex;
   private int renderedIndex;
 
-  private String switchType = SWITCH_TYPE_CLIENT;
+  private String switchType;
 
   private MethodBinding tabChangeListener = null;
   public static final String SWITCH_TYPE_CLIENT = "client";
@@ -294,6 +294,9 @@
         || SWITCH_TYPE_RELOAD_PAGE.equals(value)
         || SWITCH_TYPE_RELOAD_TAB.equals(value)) {
       return value;
+    } else if (value == null){
+      // return default
+      return SWITCH_TYPE_CLIENT;
     } else {
       LOG.warn("Illegal value for attribute switchtype : " + switchType
           + " Using default value " + SWITCH_TYPE_CLIENT);

Modified: incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java
URL: http://svn.apache.org/viewcvs/incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java?rev=392438&r1=392437&r2=392438&view=diff
==============================================================================
--- incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java
(original)
+++ incubator/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java
Fri Apr  7 15:27:50 2006
@@ -96,7 +96,7 @@
    *   "reloadTab"  : Tab switching id done by server request. Only the Tab is reloaded.
    */
   @TagAttribute
-  @UIComponentTagAttribute(type = "java.lang.String", defaultValue = "client")
+  @UIComponentTagAttribute(type = "java.lang.String", defaultValue = SWITCH_TYPE_CLIENT)
   public void setSwitchType(String switchType) {
     this.switchType = switchType;
   }



Mime
View raw message