You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@tapestry.apache.org by hl...@apache.org on 2012/10/25 23:41:59 UTC

[4/13] git commit: Deprecate the cssClass property of Severity - we'll just pass along the name and figure it out on the client

Deprecate the cssClass property of Severity
- we'll just pass along the name and figure it out on the client


Project: http://git-wip-us.apache.org/repos/asf/tapestry-5/repo
Commit: http://git-wip-us.apache.org/repos/asf/tapestry-5/commit/8763480d
Tree: http://git-wip-us.apache.org/repos/asf/tapestry-5/tree/8763480d
Diff: http://git-wip-us.apache.org/repos/asf/tapestry-5/diff/8763480d

Branch: refs/heads/5.4-js-rewrite
Commit: 8763480df2a43542a95498a1141c6f07ea1dee08
Parents: 02e6f74
Author: Howard M. Lewis Ship <hl...@apache.org>
Authored: Thu Oct 25 14:39:51 2012 -0700
Committer: Howard M. Lewis Ship <hl...@apache.org>
Committed: Thu Oct 25 14:39:51 2012 -0700

----------------------------------------------------------------------
 .../java/org/apache/tapestry5/alerts/Severity.java |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tapestry-5/blob/8763480d/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Severity.java
----------------------------------------------------------------------
diff --git a/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Severity.java b/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Severity.java
index 82d98cb..20d76d0 100644
--- a/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Severity.java
+++ b/tapestry-core/src/main/java/org/apache/tapestry5/alerts/Severity.java
@@ -23,11 +23,13 @@ public enum Severity
 
     /**
      * The CSS class to be used for the client list element.
+     *
+     * @deprecated Deprecated in Tapestry 5.4 with no replacement (beyond the name of the value itself).
      */
     public final String cssClass;
 
     private Severity()
     {
-        cssClass = "t-" + name().toLowerCase();
+        cssClass = name().toLowerCase();
     }
 }