struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [17/28] struts git commit: WW-4473 Adds support for title attribute in SubmitHandler
Date Thu, 19 Mar 2015 08:50:16 GMT
WW-4473 Adds support for title attribute in SubmitHandler


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

Branch: refs/heads/master
Commit: 4ad023207fa61e2bac96a8d88ea2bacd8da6a81b
Parents: 66248a8
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Fri Mar 6 21:07:17 2015 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Fri Mar 6 21:07:17 2015 +0100

----------------------------------------------------------------------
 .../java/org/apache/struts2/views/java/simple/SubmitHandler.java | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/4ad02320/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
----------------------------------------------------------------------
diff --git a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
index d7a6d7b..0f66153 100644
--- a/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
+++ b/plugins/javatemplates/src/main/java/org/apache/struts2/views/java/simple/SubmitHandler.java
@@ -53,7 +53,9 @@ public class SubmitHandler extends AbstractTagHandler implements TagGenerator
{
                     .addIfExists("alt", params.get("label"))
                     .addIfExists("id", params.get("id"))
                     .addIfExists("class", params.get("cssClass"))
-                    .addIfExists("style", params.get("cssStyle"));
+                    .addIfExists("style", params.get("cssStyle"))
+                    .addIfExists("title", params.get("title"));
+
             start("input", attrs);
         } else {
             attrs.addIfExists("name", params.get("name"))


Mime
View raw message