You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lu...@apache.org on 2009/11/02 19:40:54 UTC

svn commit: r832027 - /myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java

Author: lu4242
Date: Mon Nov  2 18:40:54 2009
New Revision: 832027

URL: http://svn.apache.org/viewvc?rev=832027&view=rev
Log:
MYFACES-2116 TODO 65: Partial View Lifecycle (client ids are separated by spaces, not by commas) (Thanks to Dejmek Dominik for this patch)

Modified:
    myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java

Modified: myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java
URL: http://svn.apache.org/viewvc/myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java?rev=832027&r1=832026&r2=832027&view=diff
==============================================================================
--- myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java (original)
+++ myfaces/core/trunk/api/src/main/java/javax/faces/component/behavior/AjaxBehavior.java Mon Nov  2 18:40:54 2009
@@ -124,10 +124,6 @@
 
     public Collection<String> getRender() {
         Object render = deltaStateHelper.eval(ATTR_RENDER);
-        if (render instanceof String) {
-            render = ((String) render).split(" ");
-            render = Arrays.asList((String[]) render);
-        }
 
         return (Collection<String>) render;
     }
@@ -189,7 +185,7 @@
             return;
         }
 
-        String[] arrValue = ((String) stringValue).split(",");
+        String[] arrValue = ((String) stringValue).split(" ");
 
         //we have to manually convert otherwise the delta state saving fails
         //Arrays.asList returns a list which is not instantiable