struts-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From lukaszlen...@apache.org
Subject [26/50] [abbrv] struts git commit: WW-4430 Resolves problem with missing setter and JasperException
Date Wed, 31 Dec 2014 17:17:48 GMT
WW-4430 Resolves problem with missing setter and JasperException


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

Branch: refs/heads/master
Commit: 4964b74797971751bedad0ba0982f53ef0934a2c
Parents: a46b803
Author: Lukasz Lenart <lukaszlenart@apache.org>
Authored: Tue Dec 23 10:55:00 2014 +0100
Committer: Lukasz Lenart <lukaszlenart@apache.org>
Committed: Tue Dec 23 10:55:00 2014 +0100

----------------------------------------------------------------------
 .../struts2/views/jsp/ui/AbstractUITagBeanInfo.java    | 13 +++++++++----
 1 file changed, 9 insertions(+), 4 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/struts/blob/4964b747/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITagBeanInfo.java
----------------------------------------------------------------------
diff --git a/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITagBeanInfo.java
b/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITagBeanInfo.java
index 87e4105..21c5d00 100644
--- a/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITagBeanInfo.java
+++ b/core/src/main/java/org/apache/struts2/views/jsp/ui/AbstractUITagBeanInfo.java
@@ -45,15 +45,20 @@ public class AbstractUITagBeanInfo extends SimpleBeanInfo {
             List<PropertyDescriptor> descriptors = new ArrayList<PropertyDescriptor>();
 
             // Add the tricky one first
-            Method setter = AbstractUITag.class.getMethod("setCssClass", String.class);
-            descriptors.add(new PropertyDescriptor("class", null, setter));
-            descriptors.add(new PropertyDescriptor("cssClass", null, setter));
+            Method classSetter = AbstractUITag.class.getMethod("setCssClass", String.class);
+            Method styleSetter = AbstractUITag.class.getMethod("setCssStyle", String.class);
+
+            descriptors.add(new PropertyDescriptor("class", null, classSetter));
+            descriptors.add(new PropertyDescriptor("cssClass", null, classSetter));
+
+            descriptors.add(new PropertyDescriptor("style", null, styleSetter));
+            descriptors.add(new PropertyDescriptor("cssStyle", null, styleSetter));
 
             for (Field field : AbstractUITag.class.getDeclaredFields()) {
                 String fieldName = field.getName();
                 if (!"dynamicAttributes".equals(fieldName)) {
                     String setterName = "set" + fieldName.substring(0, 1).toUpperCase() +
fieldName.substring(1);
-                    setter = AbstractUITag.class.getMethod(setterName, String.class);
+                    Method setter = AbstractUITag.class.getMethod(setterName, String.class);
                     descriptors.add(new PropertyDescriptor(fieldName, null, setter));
                 }
             }


Mime
View raw message