myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mmarinsc...@apache.org
Subject svn commit: r375262 - /myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
Date Mon, 06 Feb 2006 12:07:27 GMT
Author: mmarinschek
Date: Mon Feb  6 04:07:25 2006
New Revision: 375262

URL: http://svn.apache.org/viewcvs?rev=375262&view=rev
Log:
encoding was wrong in text-help-renderer.

Modified:
    myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java

Modified: myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
URL: http://svn.apache.org/viewcvs/myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java?rev=375262&r1=375261&r2=375262&view=diff
==============================================================================
--- myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
(original)
+++ myfaces/tomahawk/trunk/core/src/main/java/org/apache/myfaces/custom/inputTextHelp/HtmlTextHelpRenderer.java
Mon Feb  6 04:07:25 2006
@@ -25,6 +25,7 @@
 
 import org.apache.myfaces.renderkit.html.util.AddResource;
 import org.apache.myfaces.renderkit.RendererUtils;
+import org.apache.myfaces.renderkit.JSFAttr;
 import org.apache.myfaces.renderkit.html.HTML;
 import org.apache.myfaces.renderkit.html.HtmlRendererUtils;
 import org.apache.myfaces.renderkit.html.ext.HtmlTextRenderer;
@@ -87,9 +88,9 @@
         renderHelpTextAttributes(input, writer, facesContext);
 
         String value = RendererUtils.getStringValue(facesContext, input);
-        value = (value.equals("") || value == null) ? getHelpText(input) : value;
+        value = (value==null || value.length()==0) ? getHelpText(input) : value;
 
-        writer.writeAttribute(HTML.VALUE_ATTR, HTMLEncoder.encode(value,true,true), null);
+        writer.writeAttribute(HTML.VALUE_ATTR, value, JSFAttr.VALUE_ATTR);
 
         writer.endElement(HTML.INPUT_ELEM);
     }



Mime
View raw message