You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by sv...@apache.org on 2006/11/28 20:13:00 UTC

svn commit: r480158 - /myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java

Author: svieujot
Date: Tue Nov 28 11:12:58 2006
New Revision: 480158

URL: http://svn.apache.org/viewvc?view=rev&rev=480158
Log:
Bugfix for ids with a minus character.

Modified:
    myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java?view=diff&rev=480158&r1=480157&r2=480158
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/TogglePanelRenderer.java Tue Nov 28 11:12:58 2006
@@ -177,7 +177,7 @@
     }
 
     static public String getToggleJavascriptFunctionName(FacesContext context, TogglePanel togglePanel) {
-        String modifiedId = togglePanel.getClientId(context).replaceAll("\\:", "_");
+        String modifiedId = togglePanel.getClientId(context).replaceAll("\\:", "_").replaceAll("-", "_");
         return "toggle_" + modifiedId;
     }
 }