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/08/12 15:19:11 UTC
svn commit: r803491 - in
/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib:
component/ extension/
Author: lofwyr
Date: Wed Aug 12 13:19:10 2009
New Revision: 803491
URL: http://svn.apache.org/viewvc?rev=803491&view=rev
Log:
TOBAGO-762: Define a log category for deprected code.
- add warnings/errors to tag implementations
Modified:
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ButtonTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/InputTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LabelTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuCommandTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectBooleanCommandTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TobagoTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ToolBarCommandTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyCheckboxExtensionTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java
myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ButtonTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ButtonTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ButtonTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ButtonTag.java Wed Aug 12 13:19:10 2009
@@ -32,6 +32,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UIButtonCommand;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -85,8 +86,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getImage() {
@@ -112,8 +115,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/InputTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/InputTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/InputTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/InputTag.java Wed Aug 12 13:19:10 2009
@@ -24,6 +24,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TAB_INDEX;
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.EditableValueHolder;
import javax.faces.component.UIComponent;
@@ -82,8 +83,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -91,8 +94,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LabelTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LabelTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LabelTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LabelTag.java Wed Aug 12 13:19:10 2009
@@ -23,6 +23,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UILabel;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -68,8 +69,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -77,8 +80,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/LinkTag.java Wed Aug 12 13:19:10 2009
@@ -27,6 +27,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UILinkCommand;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -98,8 +99,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -107,8 +110,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuCommandTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuCommandTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuCommandTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuCommandTag.java Wed Aug 12 13:19:10 2009
@@ -25,6 +25,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.RENDERER_TYPE_MENUCOMMAND;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UIMenuCommand;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -76,8 +77,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -85,8 +88,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/MenuTag.java Wed Aug 12 13:19:10 2009
@@ -23,6 +23,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_LABEL;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UIMenu;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -78,8 +79,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -87,8 +90,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectBooleanCommandTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectBooleanCommandTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectBooleanCommandTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/SelectBooleanCommandTag.java Wed Aug 12 13:19:10 2009
@@ -25,6 +25,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.RENDERER_TYPE_MENUCOMMAND;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UISelectBooleanCommand;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -78,8 +79,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -87,8 +90,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TabTag.java Wed Aug 12 13:19:10 2009
@@ -19,11 +19,12 @@
import org.apache.commons.logging.Log;
import org.apache.commons.logging.LogFactory;
+import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DISABLED;
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_LABEL;
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
-import static org.apache.myfaces.tobago.TobagoConstants.ATTR_DISABLED;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.UITab;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
import javax.servlet.jsp.tagext.BodyTag;
@@ -76,8 +77,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -85,8 +88,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TobagoTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TobagoTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TobagoTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/TobagoTag.java Wed Aug 12 13:19:10 2009
@@ -30,6 +30,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.TOBAGO_COMPONENT_CREATED;
import org.apache.myfaces.tobago.component.ComponentUtil;
import org.apache.myfaces.tobago.component.OnComponentCreated;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
import javax.faces.webapp.UIComponentTag;
@@ -119,6 +120,10 @@
}
public void setHeight(String height) {
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'height' is deprecated, "
+ + "and will removed soon! Please use a layout manager instead.");
+ }
this.height = height;
}
@@ -167,6 +172,10 @@
}
public void setWidth(String width) {
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'width' is deprecated, "
+ + "and will removed soon! Please use a layout manager instead.");
+ }
this.width = width;
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ToolBarCommandTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ToolBarCommandTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ToolBarCommandTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/component/ToolBarCommandTag.java Wed Aug 12 13:19:10 2009
@@ -25,6 +25,7 @@
import static org.apache.myfaces.tobago.TobagoConstants.ATTR_TIP;
import static org.apache.myfaces.tobago.TobagoConstants.RENDERER_TYPE_BUTTON;
import org.apache.myfaces.tobago.component.ComponentUtil;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.faces.component.UIComponent;
@@ -89,8 +90,10 @@
}
public void setAccessKey(String accessKey) {
- LOG.warn("Attibute 'accessKey' is deprecated, "
- + "and will removed soon!");
+ if (Deprecation.LOG.isErrorEnabled()) {
+ Deprecation.LOG.error("Attribute 'accessKey' doesn't work any longer "
+ + "and will removed soon! Please use special syntax of 'label' instead.");
+ }
}
public String getLabelWithAccessKey() {
@@ -98,8 +101,10 @@
}
public void setLabelWithAccessKey(String labelWithAccessKey) {
- LOG.warn("Attibute 'labelWithAccessKey' is deprecated, "
- + "and will removed soon! Please use 'label' instead.");
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'labelWithAccessKey' is deprecated, "
+ + "and will removed soon! Please use 'label' instead.");
+ }
setLabel(labelWithAccessKey);
}
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyCheckboxExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyCheckboxExtensionTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyCheckboxExtensionTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyCheckboxExtensionTag.java Wed Aug 12 13:19:10 2009
@@ -17,32 +17,33 @@
* limitations under the License.
*/
-import org.apache.myfaces.tobago.taglib.decl.HasId;
-import org.apache.myfaces.tobago.taglib.decl.HasValue;
-import org.apache.myfaces.tobago.taglib.decl.HasValueChangeListener;
-import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
+import org.apache.myfaces.tobago.apt.annotation.ExtensionTag;
+import org.apache.myfaces.tobago.apt.annotation.Tag;
+import org.apache.myfaces.tobago.taglib.component.SelectManyCheckboxTag;
+import org.apache.myfaces.tobago.taglib.decl.HasBinding;
+import org.apache.myfaces.tobago.taglib.decl.HasConverter;
import org.apache.myfaces.tobago.taglib.decl.HasDeprecatedHeight;
-import org.apache.myfaces.tobago.taglib.decl.IsInline;
+import org.apache.myfaces.tobago.taglib.decl.HasId;
import org.apache.myfaces.tobago.taglib.decl.HasLabel;
import org.apache.myfaces.tobago.taglib.decl.HasLabelWidth;
-import org.apache.myfaces.tobago.taglib.decl.IsRendered;
-import org.apache.myfaces.tobago.taglib.decl.HasBinding;
+import org.apache.myfaces.tobago.taglib.decl.HasMarkup;
+import org.apache.myfaces.tobago.taglib.decl.HasOnchange;
+import org.apache.myfaces.tobago.taglib.decl.HasRenderRange;
+import org.apache.myfaces.tobago.taglib.decl.HasTabIndex;
import org.apache.myfaces.tobago.taglib.decl.HasTip;
-import org.apache.myfaces.tobago.taglib.decl.HasConverter;
import org.apache.myfaces.tobago.taglib.decl.HasValidator;
-import org.apache.myfaces.tobago.taglib.decl.HasOnchange;
-import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
-import org.apache.myfaces.tobago.taglib.decl.HasMarkup;
+import org.apache.myfaces.tobago.taglib.decl.HasValue;
+import org.apache.myfaces.tobago.taglib.decl.HasValueChangeListener;
+import org.apache.myfaces.tobago.taglib.decl.IsDisabled;
import org.apache.myfaces.tobago.taglib.decl.IsFocus;
+import org.apache.myfaces.tobago.taglib.decl.IsInline;
+import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
+import org.apache.myfaces.tobago.taglib.decl.IsRendered;
import org.apache.myfaces.tobago.taglib.decl.IsRequired;
-import org.apache.myfaces.tobago.taglib.decl.HasTabIndex;
-import org.apache.myfaces.tobago.taglib.decl.HasRenderRange;
-import org.apache.myfaces.tobago.taglib.component.SelectManyCheckboxTag;
-import org.apache.myfaces.tobago.apt.annotation.Tag;
-import org.apache.myfaces.tobago.apt.annotation.ExtensionTag;
+import org.apache.myfaces.tobago.util.Deprecation;
-import javax.servlet.jsp.tagext.BodyTagSupport;
import javax.servlet.jsp.JspException;
+import javax.servlet.jsp.tagext.BodyTagSupport;
/**
* Render a group of checkboxes.
@@ -223,6 +224,10 @@
}
public void setHeight(String height) {
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'height' is deprecated, "
+ + "and will removed soon! Please use a layout manager instead.");
+ }
this.height = height;
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectManyListboxExtensionTag.java Wed Aug 12 13:19:10 2009
@@ -39,6 +39,7 @@
import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
import org.apache.myfaces.tobago.taglib.decl.IsRendered;
import org.apache.myfaces.tobago.taglib.decl.IsRequired;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
@@ -223,6 +224,10 @@
}
public void setHeight(String height) {
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'height' is deprecated, "
+ + "and will removed soon! Please use a layout manager instead.");
+ }
this.height = height;
}
Modified: myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java?rev=803491&r1=803490&r2=803491&view=diff
==============================================================================
--- myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java (original)
+++ myfaces/tobago/branches/tobago-1.0.x/core/src/main/java/org/apache/myfaces/tobago/taglib/extension/SelectOneListboxExtensionTag.java Wed Aug 12 13:19:10 2009
@@ -26,6 +26,7 @@
import org.apache.myfaces.tobago.taglib.decl.HasId;
import org.apache.myfaces.tobago.taglib.decl.HasLabel;
import org.apache.myfaces.tobago.taglib.decl.HasLabelWidth;
+import org.apache.myfaces.tobago.taglib.decl.HasMarkup;
import org.apache.myfaces.tobago.taglib.decl.HasOnchange;
import org.apache.myfaces.tobago.taglib.decl.HasTabIndex;
import org.apache.myfaces.tobago.taglib.decl.HasTip;
@@ -37,7 +38,7 @@
import org.apache.myfaces.tobago.taglib.decl.IsReadonly;
import org.apache.myfaces.tobago.taglib.decl.IsRendered;
import org.apache.myfaces.tobago.taglib.decl.IsRequired;
-import org.apache.myfaces.tobago.taglib.decl.HasMarkup;
+import org.apache.myfaces.tobago.util.Deprecation;
import javax.servlet.jsp.JspException;
import javax.servlet.jsp.tagext.BodyTagSupport;
@@ -215,6 +216,10 @@
}
public void setHeight(String height) {
+ if (Deprecation.LOG.isWarnEnabled()) {
+ Deprecation.LOG.warn("Attribute 'height' is deprecated, "
+ + "and will removed soon! Please use a layout manager instead.");
+ }
this.height = height;
}