struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [1/4] git commit: Adds 'name' to be rendered for submit input type 'image'
Date Thu, 06 Mar 2014 22:17:37 GMT
Repository: struts
Updated Branches:
  refs/heads/develop 6064b0cd9 -> 55cce8506


Adds 'name' to be rendered for submit input type 'image'


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

Branch: refs/heads/develop
Commit: fc6c34d85c76f033071bab9a99d919569d8d65f9
Parents: 80cd040
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Thu Mar 6 22:52:05 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Thu Mar 6 22:52:05 2014 +0100

----------------------------------------------------------------------
 .../apache/struts2/views/java/simple/SubmitHandler.java  | 11 +++++------
 1 file changed, 5 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/fc6c34d8/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 570619c..d7a6d7b 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
@@ -49,11 +49,12 @@ public class SubmitHandler extends AbstractTagHandler implements TagGenerator
{
         } else if ("image".equals(type)) {
             attrs.addIfExists("src", params.get("src"))
                     .add("type", "image")
-            		.addIfExists("alt", params.get("label"))
-            		.addIfExists("id", params.get("id"))
+                    .addIfExists("name", params.get("name"))
+                    .addIfExists("alt", params.get("label"))
+                    .addIfExists("id", params.get("id"))
                     .addIfExists("class", params.get("cssClass"))
-            		.addIfExists("style", params.get("cssStyle"));
-             start("input", attrs);
+                    .addIfExists("style", params.get("cssStyle"));
+            start("input", attrs);
         } else {
             attrs.addIfExists("name", params.get("name"))
                     .add("type", "submit")
@@ -93,5 +94,3 @@ public class SubmitHandler extends AbstractTagHandler implements TagGenerator
{
         }
     }
 }
-
-


Mime
View raw message