myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lof...@apache.org
Subject svn commit: r1760738 - /myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
Date Wed, 14 Sep 2016 18:11:35 GMT
Author: lofwyr
Date: Wed Sep 14 18:11:35 2016
New Revision: 1760738

URL: http://svn.apache.org/viewvc?rev=1760738&view=rev
Log:
TOBAGO-1524: Use standard AJAX mechanism
* fix in sheet: tc:columnEvent without AJAX
(fix normal commands)

Modified:
    myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java

Modified: myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
URL: http://svn.apache.org/viewvc/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java?rev=1760738&r1=1760737&r2=1760738&view=diff
==============================================================================
--- myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
(original)
+++ myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
Wed Sep 14 18:11:35 2016
@@ -272,7 +272,11 @@ public final class RenderUtils {
 
     final CommandMap map = new CommandMap();
     addBehaviorCommands(facesContext, holder, map);
-    return JsonUtils.encode(map);
+    if (map.isEmpty()) {
+      return null;
+    } else {
+      return JsonUtils.encode(map);
+    }
   }
 
   public static void addBehaviorCommands(



Mime
View raw message