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 2016/09/14 18:11:35 UTC
svn commit: r1760738 -
/myfaces/tobago/trunk/tobago-theme/tobago-theme-standard/src/main/java/org/apache/myfaces/tobago/renderkit/util/RenderUtils.java
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(