You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by we...@apache.org on 2006/10/06 21:24:06 UTC

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

Author: werpu
Date: Fri Oct  6 12:24:05 2006
New Revision: 453733

URL: http://svn.apache.org/viewvc?view=rev&rev=453733
Log:
removed a compile error against jdk 1.4 and also removed an error with more than one : within the 
client id, javascript functions are not allowed to have : in them

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

Modified: myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/ToggleOutputLinkRenderer.java
URL: http://svn.apache.org/viewvc/myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/ToggleOutputLinkRenderer.java?view=diff&rev=453733&r1=453732&r2=453733
==============================================================================
--- myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/ToggleOutputLinkRenderer.java (original)
+++ myfaces/tomahawk/trunk/sandbox/core/src/main/java/org/apache/myfaces/custom/toggle/ToggleOutputLinkRenderer.java Fri Oct  6 12:24:05 2006
@@ -142,7 +142,7 @@
     private String getJavascriptFunctionName(FacesContext context, 
     		ToggleOutputLink toggleOutputLink)
     {
-    	String modifiedId = toggleOutputLink.getClientId(context).replace(":", "_");
+    	String modifiedId = toggleOutputLink.getClientId(context).replaceAll("\\:", "_");
     	return "toggle_" + modifiedId;
     }