click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r765603 - /incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java
Date Thu, 16 Apr 2009 12:27:01 GMT
Author: sabob
Date: Thu Apr 16 12:27:00 2009
New Revision: 765603

URL: http://svn.apache.org/viewvc?rev=765603&view=rev
Log:
backport CLK-515

Modified:
    incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java

Modified: incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java
URL: http://svn.apache.org/viewvc/incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java?rev=765603&r1=765602&r2=765603&view=diff
==============================================================================
--- incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java
(original)
+++ incubator/click/branches/click-2.0.x/examples/src/org/apache/click/examples/page/tree/PageLinkTreePage.java
Thu Apr 16 12:27:00 2009
@@ -29,7 +29,8 @@
 import org.apache.click.extras.tree.Tree;
 import org.apache.click.extras.tree.TreeNode;
 import org.apache.click.util.HtmlStringBuffer;
-import org.springframework.util.ClassUtils;
+
+import org.apache.commons.lang.ClassUtils;
 
 /**
  * Demonstrates how to customize the rendering of tree nodes.
@@ -50,6 +51,8 @@
     protected Tree createTree() {
         return new Tree("tree") {
 
+            private static final long serialVersionUID = 1L;
+
             protected void renderValue(HtmlStringBuffer buffer, TreeNode treeNode) {
                 Object nodeValue = treeNode.getValue();
                 Class cls = null;
@@ -60,7 +63,7 @@
                 // If node value is a Page class, render a PageLink, otherwise
                 // render the node value
                 if (cls != null && Page.class.isAssignableFrom(cls)) {
-                    String shortName = ClassUtils.getShortName(cls);
+                    String shortName = ClassUtils.getShortClassName(cls);
                     PageLink link = new PageLink(shortName, cls);
                     buffer.append(link);
                 } else {



Mime
View raw message