struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [2/3] struts git commit: html5 attributes again
Date Thu, 03 Mar 2016 16:41:08 GMT
html5 attributes again

Project: http://git-wip-us.apache.org/repos/asf/struts/repo
Commit: http://git-wip-us.apache.org/repos/asf/struts/commit/d397abcf
Tree: http://git-wip-us.apache.org/repos/asf/struts/tree/d397abcf
Diff: http://git-wip-us.apache.org/repos/asf/struts/diff/d397abcf

Branch: refs/heads/master
Commit: d397abcfc130056039e5e9744135ce3b736704ff
Parents: 40f7b39
Author: gregh3269 <gregh3269@gmail.com>
Authored: Wed Feb 10 11:12:10 2016 +0000
Committer: gregh3269 <gregh3269@gmail.com>
Committed: Wed Feb 10 11:12:10 2016 +0000

----------------------------------------------------------------------
 .../org/apache/struts2/views/java/simple/TextFieldHandler.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/d397abcf/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
----------------------------------------------------------------------
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
index d79e4d3..29921f1 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/TextFieldHandler.java
@@ -32,7 +32,7 @@ public class TextFieldHandler extends AbstractTagHandler implements TagGenerator
         Map<String, Object> params = context.getParameters();
         Attributes attr = new Attributes();
         Object type = params.get("type");
-        attr.add("type", type == null ? "text" : (String) type)
+        attr.add("type", type == null ? "text" : type.toString())
                 .addDefaultToEmpty("name", params.get("name"))
                 .addIfExists("size", params.get("size"))
                 .addIfExists("maxlength", params.get("maxlength"))


Mime
View raw message