myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lu4...@apache.org
Subject svn commit: r832542 - /myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Date Tue, 03 Nov 2009 20:34:11 GMT
Author: lu4242
Date: Tue Nov  3 20:34:10 2009
New Revision: 832542

URL: http://svn.apache.org/viewvc?rev=832542&view=rev
Log:
MYFACES-2256 oamSetHiddenInput should not ignore nodeName=='input' (lower case characters)
(Thanks to Lutz Ulruch for this patch)

Modified:
    myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java

Modified: myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
URL: http://svn.apache.org/viewvc/myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java?rev=832542&r1=832541&r2=832542&view=diff
==============================================================================
--- myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
(original)
+++ myfaces/shared/trunk_3.0.x/core/src/main/java/org/apache/myfaces/shared/renderkit/html/HtmlRendererUtils.java
Tue Nov  3 20:34:10 2009
@@ -1013,7 +1013,7 @@
         context.append("{");
         context.append("var form = document.forms[formname];");
         context.prettyLine();
-        context.append("if(typeof form.elements[name]!='undefined' && form.elements[name].nodeName=='INPUT')");
+        context.append("if(typeof form.elements[name]!='undefined' && (form.elements[name].nodeName=='INPUT'
|| form.elements[name].nodeName=='input'))");
         context.append("{");
         context.append("form.elements[name].value=value;");        
         context.append("}");



Mime
View raw message