You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2010/03/31 12:03:47 UTC

svn commit: r929453 - in /myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component: PageTag.java SheetTag.java SheetTagDeclaration.java TabGroupTag.java

Author: lofwyr
Date: Wed Mar 31 10:03:47 2010
New Revision: 929453

URL: http://svn.apache.org/viewvc?rev=929453&view=rev
Log:
TOBAGO-836: Error logs, when using deprecated attributes.

Modified:
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/PageTag.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTag.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTagDeclaration.java
    myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/PageTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/PageTag.java?rev=929453&r1=929452&r2=929453&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/PageTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/PageTag.java Wed Mar 31 10:03:47 2010
@@ -17,6 +17,14 @@ package org.apache.myfaces.tobago.taglib
  * limitations under the License.
  */
 
+import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.component.UIPage;
+import org.apache.myfaces.tobago.util.Deprecation;
+
+import javax.faces.component.UIComponent;
+import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.BodyTag;
+
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_APPLICATION_ICON;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DOCTYPE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_FOCUS_ID;
@@ -25,12 +33,6 @@ import static org.apache.myfaces.tobago.
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_METHOD;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_STATE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_WIDTH;
-import org.apache.myfaces.tobago.component.ComponentUtil;
-import org.apache.myfaces.tobago.component.UIPage;
-
-import javax.faces.component.UIComponent;
-import javax.servlet.jsp.JspException;
-import javax.servlet.jsp.tagext.BodyTag;
 
 // Some Weblogic versions need explicit 'implements' for BodyTag
 public class PageTag extends TobagoBodyTag
@@ -94,6 +96,8 @@ public class PageTag extends TobagoBodyT
   }
 
   public void setDoctype(String doctype) {
+    Deprecation.LOG.error("The attribute 'doctype' of 'UIPage' is deprecated. "
+        + "Please refer the documentation for further information.");
     this.doctype = doctype;
   }
 

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTag.java?rev=929453&r1=929452&r2=929453&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTag.java Wed Mar 31 10:03:47 2010
@@ -17,23 +17,25 @@ package org.apache.myfaces.tobago.taglib
  * limitations under the License.
  */
 
+import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.component.UIData;
+import org.apache.myfaces.tobago.util.Deprecation;
+
+import javax.faces.component.UIComponent;
+
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_COLUMNS;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DIRECT_LINK_COUNT;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_FIRST;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_FORCE_VERTICAL_SCROLLBAR;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_ROWS;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_DIRECT_LINKS;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SELECTABLE;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_DIRECT_LINKS;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_HEADER;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_PAGE_RANGE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_ROW_RANGE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_STATE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_VALUE;
 import static org.apache.myfaces.tobago.TobagoConstants.ATTR_VAR;
-import org.apache.myfaces.tobago.component.ComponentUtil;
-import org.apache.myfaces.tobago.component.UIData;
-
-import javax.faces.component.UIComponent;
 
 
 public class SheetTag extends TobagoTag implements SheetTagDeclaration {
@@ -119,6 +121,8 @@ public class SheetTag extends TobagoTag 
   }
 
   public void setPagingLength(String pagingLength) {
+    Deprecation.LOG.error("The attribute 'pagingLength' of 'UISheet' is deprecated. "
+        + "Please refer the documentation for further information.");
     this.rows = pagingLength;
   }
 
@@ -135,6 +139,8 @@ public class SheetTag extends TobagoTag 
   }
 
   public void setPagingStart(String pagingStart) {
+    Deprecation.LOG.error("The attribute 'pagingStart' of 'UISheet' is deprecated. "
+        + "Please refer the documentation for further information.");
     this.first = pagingStart;
   }
 

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTagDeclaration.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTagDeclaration.java?rev=929453&r1=929452&r2=929453&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTagDeclaration.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SheetTagDeclaration.java Wed Mar 31 10:03:47 2010
@@ -56,7 +56,7 @@ public interface SheetTagDeclaration ext
   /**
    * Please use "rows" instead.
    * The number of rows to display, starting with the one identified by the
-   * "pageingStart" property.
+   * "pagingStart" property.
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "100")
@@ -65,7 +65,7 @@ public interface SheetTagDeclaration ext
 
   /**
    * The number of rows to display, starting with the one identified by the
-   * "pageingStart/first" property.
+   * "pagingStart/first" property.
    */
   @TagAttribute
   @UIComponentTagAttribute(type = "java.lang.Integer", defaultValue = "100")

Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java?rev=929453&r1=929452&r2=929453&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabGroupTag.java Wed Mar 31 10:03:47 2010
@@ -19,18 +19,20 @@ package org.apache.myfaces.tobago.taglib
 
 import org.apache.commons.logging.Log;
 import org.apache.commons.logging.LogFactory;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_IMMEDIATE;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_NAVIGATION_BAR;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SELECTED_INDEX;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SWITCH_TYPE;
 import org.apache.myfaces.tobago.component.ComponentUtil;
 import org.apache.myfaces.tobago.component.UITabGroup;
-import static org.apache.myfaces.tobago.component.UITabGroup.SWITCH_TYPE_CLIENT;
-import static org.apache.myfaces.tobago.component.UITabGroup.SWITCH_TYPE_RELOAD_PAGE;
+import org.apache.myfaces.tobago.util.Deprecation;
 
+import javax.faces.application.Application;
 import javax.faces.component.UIComponent;
 import javax.faces.context.FacesContext;
-import javax.faces.application.Application;
+
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_IMMEDIATE;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SELECTED_INDEX;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SHOW_NAVIGATION_BAR;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_SWITCH_TYPE;
+import static org.apache.myfaces.tobago.component.UITabGroup.SWITCH_TYPE_CLIENT;
+import static org.apache.myfaces.tobago.component.UITabGroup.SWITCH_TYPE_RELOAD_PAGE;
 
 public class TabGroupTag extends TobagoTag
     implements TabGroupTagDeclaration {
@@ -77,12 +79,15 @@ public class TabGroupTag extends TobagoT
   }
 
   public void setServerside(String serverside) {
-    LOG.warn("Attribute 'serverside' is deprecated! Use 'switchType' instead.");
+    Deprecation.LOG.error("The attribute 'serverside' of 'UITabGroup' is deprecated. "
+        + "Please refer the documentation for further information.");
     this.switchType = Boolean.valueOf(serverside)
         ? SWITCH_TYPE_RELOAD_PAGE : SWITCH_TYPE_CLIENT;
   }
 
   public void setState(String state) {
+    Deprecation.LOG.error("The attribute 'state' of 'UITabGroup' is deprecated. "
+        + "Please refer the documentation for further information.");
     this.state = state;
   }