myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bara...@apache.org
Subject svn commit: r347965 - /myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java
Date Mon, 21 Nov 2005 19:55:31 GMT
Author: baranda
Date: Mon Nov 21 11:55:25 2005
New Revision: 347965

URL: http://svn.apache.org/viewcvs?rev=347965&view=rev
Log:
Fixes MYFACES-845. Thanks to John Tinetti

Modified:
    myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java

Modified: myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java
URL: http://svn.apache.org/viewcvs/myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java?rev=347965&r1=347964&r2=347965&view=diff
==============================================================================
--- myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java
(original)
+++ myfaces/share/trunk/src/java/org/apache/myfaces/renderkit/html/HtmlLinkRendererBase.java
Mon Nov 21 11:55:25 2005
@@ -20,6 +20,7 @@
 import org.apache.myfaces.renderkit.RendererUtils;
 import org.apache.myfaces.renderkit.html.util.DummyFormResponseWriter;
 import org.apache.myfaces.renderkit.html.util.DummyFormUtils;
+import org.apache.myfaces.renderkit.html.util.HTMLEncoder;
 import org.apache.myfaces.renderkit.html.util.JavascriptUtils;
 
 import javax.faces.application.StateManager;
@@ -408,7 +409,7 @@
         onClick.append(jsForm);
         onClick.append(".elements['").append(name).append("']");
         //UIParameter is no ValueHolder, so no conversion possible
-        String strParamValue = value != null ? value.toString() : ""; //TODO: Use Converter?
+        String strParamValue = value != null ? HTMLEncoder.encode(value.toString(), false,
false) : "";
         onClick.append(".value='").append(strParamValue).append("';");
 
         if (nestingForm != null)



Mime
View raw message