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 2009/12/01 16:23:41 UTC

svn commit: r885791 - /myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java

Author: lofwyr
Date: Tue Dec  1 15:23:40 2009
New Revision: 885791

URL: http://svn.apache.org/viewvc?rev=885791&view=rev
Log:
add deprecation info

Modified:
    myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java

Modified: myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java?rev=885791&r1=885790&r2=885791&view=diff
==============================================================================
--- myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java (original)
+++ myfaces/tobago/trunk/core/src/main/java/org/apache/myfaces/tobago/taglib/decl/HasCommandType.java Tue Dec  1 15:23:40 2009
@@ -21,15 +21,25 @@
 import org.apache.myfaces.tobago.apt.annotation.UIComponentTagAttribute;
 import org.apache.myfaces.tobago.component.UICommandBase;
 
-/**
- * $Id$
- */
+@Deprecated
 public interface HasCommandType {
   /**
+   * <p>
    * Type of command component to create. Valid values are 'navigate', 'reset',
    * 'script' or 'submit'.
    * If not specified, or not a valid value,
    * the default value is 'submit' is used.
+   * </p>
+   * <p>
+   * Deprecation info: 
+   * <ul>
+   * <li>Instead of 'navigate' please use the link attribute.</li>
+   * <li>Instead of 'script' please use the onclick attribute.</li>
+   * <li>'submit' is the default, so you can omit it.</li>
+   * <li>'reset' should not be used, but can emulated by the application (e.g. cancel button).</li>
+   * </ul>
+   * </p>
+   * @deprecated
    */
   @TagAttribute
   @UIComponentTagAttribute(defaultValue = UICommandBase.COMMAND_TYPE_SUBMIT)