1. opensymphony
  2. webwork

Commits

plightbo  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

  • Participants
  • Parent commits dd9e69c
  • Branches master

Comments (0)

Files changed (2)

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

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

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

View file
 
                 // 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) {