Commits

Anonymous committed b6d591c

Comments (0)

Files changed (1)

src/java/com/opensymphony/webwork/views/jsp/ui/AbstractUITag.java

     protected String themeAttr;
     protected String valueAttr;
     protected String classAttr;
+    protected String styleAttr;
 
     //~ Methods ////////////////////////////////////////////////////////////////
 
         classAttr = aClass;
     }
 
+    public void setStyle(String aStyle) {
+        this.styleAttr = aStyle;
+    }
+
     public int doEndTag() throws JspException {
         try {
             OgnlValueStack stack = getStack();
             addParameter("class", findValue(classAttr, String.class));
         }
 
+        if (classAttr != null) {
+            addParameter("style", findValue(styleAttr, String.class));
+        }
+
         FormTag tag = (FormTag) findAncestorWithClass(this, FormTag.class);
         if (tag != null) {
             addParameter("form", tag.getParameters());