Commits

Anonymous committed 78aa331

small fix around attributes and parameters (god these tags are weird)

git-svn-id: http://svn.opensymphony.com/svn/webwork/trunk@646573baa09-0c28-0410-bef9-dab3c582ae83

Comments (0)

Files changed (2)

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

         if (id != null) {
             addParameter("id", id);
         } else if (formTag != null) {
-            addParameter("id", formTag.id + "_" + name);
+            addParameter("id", formTag.getParameters().get("id") + "_" + name);
         }
 
 

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

 
                 // if the name isn't specified, use the action name
                 if (nameAttr == null) {
-                    nameAttr = action;
                     addParameter("name", action);
                 }
 
                 // if the id isn't specified, use the action name
                 if (id == null) {
-                    id = action;
                     addParameter("id", action);
                 }
             } else if (action != null) {