click-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sa...@apache.org
Subject svn commit: r786333 - in /incubator/click/trunk/click/framework/src/org/apache/click/element: CssStyle.java JsScript.java
Date Thu, 18 Jun 2009 23:21:51 GMT
Author: sabob
Date: Thu Jun 18 23:21:51 2009
New Revision: 786333

URL: http://svn.apache.org/viewvc?rev=786333&view=rev
Log:
fixed rendering "null" string, if no content was  set

Modified:
    incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java
    incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java

Modified: incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java?rev=786333&r1=786332&r2=786333&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/element/CssStyle.java Thu Jun
18 23:21:51 2009
@@ -421,7 +421,10 @@
             buffer.append(context.renderTemplate(getTemplate(), templateModel));
 
         }
-        buffer.append(getContent());
+
+        if (getContent() != null) {
+            buffer.append(getContent());
+        }
     }
 
     // ------------------------------------------------ Package Private Methods

Modified: incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java
URL: http://svn.apache.org/viewvc/incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java?rev=786333&r1=786332&r2=786333&view=diff
==============================================================================
--- incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java (original)
+++ incubator/click/trunk/click/framework/src/org/apache/click/element/JsScript.java Thu Jun
18 23:21:51 2009
@@ -479,7 +479,10 @@
             buffer.append(context.renderTemplate(getTemplate(), templateModel));
 
         }
-        buffer.append(getContent());
+
+        if (getContent() != null) {
+            buffer.append(getContent());
+        }
     }
 
     /**



Mime
View raw message