Author: dolander
Date: Fri Jan  7 09:54:23 2005
New Revision: 124551

URL: http://svn.apache.org/viewcvs?view=rev&rev=124551
Log:
Update the Form tag to output the proper tagId lookup information



Modified:
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
   
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
   
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml
   incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml
   
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java&r1=124550&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java
      (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/AnchorBase.java
      Fri Jan  7 09:54:23 2005
@@ -434,10 +434,10 @@
 
         // if the user override the onclick we will ignore this
         if (_state.onClick == null && _formSubmit && formAction != null) {
-            String realFormName = getRealFormName();
+            String realFormName = getFormId();
             _state.onClick = jsu.writeAnchorFormSubmitAction(realFormName, 
_state.href);
             if (_form != null)
-                _form.generateRealName();
+                _form.insureRealId();
         }
 
         if (hasErrors())
@@ -505,10 +505,10 @@
      * id attribute.
      * @return The String real name of the containing form.
      */
-    private String getRealFormName()
+    private String getFormId()
     {
         if (_form != null) {
-            return _form.getRealName();
+            return _form.getRealFormId();
         }
         return null;
     }

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java&r1=124550&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
    (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/Form.java
    Fri Jan  7 09:54:23 2005
@@ -27,6 +27,7 @@
 import org.apache.beehive.netui.script.common.ImplicitObjectUtil;
 import org.apache.beehive.netui.tags.internal.PageFlowTagUtils;
 import org.apache.beehive.netui.tags.rendering.*;
+import org.apache.beehive.netui.tags.TagConfig;
 import org.apache.beehive.netui.util.Bundle;
 import org.apache.beehive.netui.util.ParamHelper;
 import org.apache.beehive.netui.util.logging.Logger;
@@ -223,6 +224,7 @@
     private String _beanScope = null;              // The scope of the form 
bean to (create and) use.
     private String _type = null;                   // The Java class name of 
the bean to be created, if necessary.
     private String _realName = null;
+    private String _id = null;
     private String _formId = null;
 
     private ActionMapping _mapping = null;         // The ActionMapping 
defining where we will be submitting this form
@@ -315,17 +317,20 @@
     }
 
     /**
-     * this is used to
+     * This method will return the real id that will be written out by the 
form.  This is
+     * either the current state qualified tagId or the _realName if tagId is 
not specified.
+     * @return the value of the id attribute written by the form.
      */
-    public String getRealName()
+    public String getRealFormId()
     {
-        return _realName;
+        return (_state.id != null) ? _state.id : _realName;
     }
 
     /**
-     *
+     * This method will insure that a real id is written out even if a tagId 
is not
+     * set for the form.
      */
-    public void generateRealName()
+    public void insureRealId()
     {
         _setRealName = true;
     }
@@ -567,11 +572,17 @@
             nextId = new Integer(0);
         _nextId = nextId.intValue();
 
-        // @todo: what do we do about the id for a form?
+        // Generate the form id and save it in addition save any value
+        // that was set for tagId.
         _formId = FORM_ID + getNextId(request);
-        String tagId = getTagId();
-        if (tagId != null) {
-            _realName = rewriteName(tagId);
+        _id = _state.id;
+        if (_state.id != null)
+            _state.id = getIdForTagId(_state.id);
+
+        // we need to create a real name for the form, it will either be the 
tagId
+        // or the generated form id.
+        if (_state.id != null) {
+            _realName = rewriteName(_state.id);
         }
         else {
             _realName = rewriteName(_formId);
@@ -682,13 +693,10 @@
         }
 
         // if tagId is set we need to add a mapping to the 'id'
-        String tagId = getTagId();
-        if (tagId != null) {
-            idScript = mapLegacyTagId(tagId, _realName);
-        }
+        idScript = renderNameAndId();
 
         // create real form name attribute
-        if (tagId != null || _setRealName)
+        if (_state.id == null && _setRealName)
             _state.id = _realName;
 
         if (_state.method == null)
@@ -725,12 +733,10 @@
         TagRenderingBase br = 
TagRenderingBase.Factory.getRendering(TagRenderingBase.FORM_TAG, request);
         br.doStartTag(writer, _state);
 
-        //
         // If the action we're submitting to is checking for double-submits, 
save a token in the session.
         // This will be written out as a hidden param (below), and will be 
checked in PageFlowRequestProcessor.
-        //
         String token = PageFlowTagUtils.getToken(request, _mapping);
-        
+
         // Add a transaction token (if present in our session)
         HttpSession session = pageContext.getSession();
         if (session != null) {
@@ -741,7 +747,7 @@
                 writeHiddenParam(Constants.TOKEN_KEY, token, writer, request, 
true);
             }
         }
-        
+
         // add a hidden value for each parameter
         if (_params != null) {
             Iterator paramKeys = _params.keySet().iterator();
@@ -810,6 +816,39 @@
         return EVAL_PAGE;
     }
 
+    private String renderNameAndId()
+    {
+        // if id is not set then we need to exit
+        if (_id == null)
+            return null;
+
+        // rewrite the id, save the original value so it can be used in maps
+        //String id = _state.id;
+
+        // Legacy Java Script support -- This writes out a single table with 
both the id and names
+        // mixed.  This is legacy support to match the pre beehive behavior.
+        String idScript = null;
+        if (TagConfig.isLegacyJavaScript()) {
+            idScript = mapLegacyTagId(_id, _state.id);
+        }
+
+        // map the tagId to the real id
+        if (TagConfig.isDefaultJavaScript()) {
+
+            String script = mapTagId(_id, _state.id, _state.name);
+
+            // if we wrote out script in legacy mode, we need to make sure we 
preserve it.
+            if (idScript != null) {
+                idScript = idScript + script;
+            }
+            else {
+                idScript = script;
+            }
+       }
+       return idScript;
+    }
+
+
     /**
      * Write a hidden field for a paramter
      * @param paramName  The name of the parameter
@@ -854,6 +893,7 @@
         _beanScope = null;
         _type = null;
         _realName = null;
+        _id = null;
         _formId = null;
         _mapping = null;
         _servlet = null;

Modified: 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java&r1=124550&p2=incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
     (original)
+++ 
incubator/beehive/trunk/netui/src/tags-html/org/apache/beehive/netui/tags/html/HtmlBaseTag.java
     Fri Jan  7 09:54:23 2005
@@ -145,7 +145,8 @@
     public void setTagId(String tagId)
             throws JspException
     {
-        // JSP 2.0 EL will convert a null into a empty string "". If we get a 
"" we will display an error.
+        // JSP 2.0 EL will convert a null into a empty string "".
+        // If we get a "" we will display an error.
         AbstractHtmlState tsh = getState();
         tsh.id = setRequiredValueAttribute(tagId, "tagId");
     }

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp
  (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/coreWeb/idmap/htmlScopeId/index.jsp
  Fri Jan  7 09:54:23 2005
@@ -39,17 +39,6 @@
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 
-function getScopeId(tag)
-{
-   if (tag == null || tag.getAttribute == null)
-      return "";
-   var attrVal = tag.getAttribute("netui:scopeId");
-   if (attrVal != null)
-      return attrVal;
-   return getScopeId(tag.parentNode);
-}
-
-
     var p = document.getElementById("javaOut");
     var s = document.getElementById("scopeOneSpan");
 

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml    
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34263.xml    
    Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>B34263</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:31:05.188 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 07:59:29.656 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7f38</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7f38</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -155,14 +155,18 @@
 // to the real id written into the HTML
 if (netui_tagIdMap == null)
    var netui_tagIdMap = new Object();
+netui_tagIdMap.FormFour="FormFour"
 netui_tagIdMap.CustomizeReset="CustomizeReset"
 netui_tagIdMap.SearchAdvanced="SearchAdvanced"
 netui_tagIdMap.SearchEnter="SearchEnter"
+netui_tagIdMap.FormThree="FormThree"
 netui_tagIdMap.NameEnter="NameEnter"
 netui_tagIdMap.CustomizeUpdate="CustomizeUpdate"
 netui_tagIdMap.NameDelete="NameDelete"
 netui_tagIdMap.MiscOne="MiscOne"
 netui_tagIdMap.MiscTwo="MiscTwo"
+netui_tagIdMap.FormOne="FormOne"
+netui_tagIdMap.FormTwo="FormTwo"
 
 
 // Build the netui_names table to map the tagId attributes
@@ -171,6 +175,8 @@
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.SearchAdvanced="actionOverride:EnterAdvancedSearch"
 netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+netui_tagIdNameMap.FormOne="name"
+netui_tagIdNameMap.FormTwo="search"
 
 
 // **** This section contains functions typically run as events ****
@@ -231,7 +237,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:31:05.798 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 07:59:30.267 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml    
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B34998.xml    
    Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>B34998</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:31:06.740 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 07:59:31.228 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7f32</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7f32</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -117,6 +117,20 @@
 netui_names.FormOne="FormOne"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.FormOne="FormOne"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.FormOne="name"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -132,6 +146,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -176,7 +210,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -210,7 +244,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -226,7 +260,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7f32</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7f32</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testnumber</ses:name>
@@ -270,7 +304,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:31:08.092 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 07:59:32.600 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>2</ses:testCount>
    <ses:passedCount>1</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml    
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/B39820.xml    
    Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>B39820</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:31:26.828 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 07:59:51.296 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -127,6 +127,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -157,6 +173,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -205,7 +241,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -239,7 +275,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -255,7 +291,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -305,7 +341,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -327,7 +363,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -343,7 +379,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -414,6 +450,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -444,6 +496,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -492,7 +564,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -526,7 +598,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -542,7 +614,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -592,7 +664,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -614,7 +686,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -630,7 +702,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -701,6 +773,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -731,6 +819,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -779,7 +887,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -813,7 +921,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -829,7 +937,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -879,7 +987,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -901,7 +1009,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -917,7 +1025,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -988,6 +1096,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1018,6 +1142,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -1066,7 +1210,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1100,7 +1244,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1116,7 +1260,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1166,7 +1310,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1188,7 +1332,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1204,7 +1348,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1275,6 +1419,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1305,6 +1465,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -1353,7 +1533,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1387,7 +1567,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1403,7 +1583,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1453,7 +1633,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1475,7 +1655,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1491,7 +1671,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1562,6 +1742,22 @@
 netui_names.tagId1="tagId1"
 
 
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.tagId2="tagId2"
+netui_tagIdMap.tagId1="tagId1"
+
+
+// Build the netui_names table to map the tagId attributes
+// to the real id written into the HTML
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.tagId2="theFormBean"
+netui_tagIdNameMap.tagId1="theFormBean"
+
+
 // **** This section contains functions typically run as events ****
 
 
@@ -1592,6 +1788,26 @@
       return netui_names[scopeId  + "__" + id];
 }
 
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 function getScopeId(tag)
@@ -1640,7 +1856,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1674,7 +1890,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -1690,7 +1906,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7efc</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7efc</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1728,7 +1944,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:31:28.330 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 07:59:52.808 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>12</ses:testCount>
    <ses:passedCount>6</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
     (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/ButtonSubmitTagId.xml
     Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>ButtonSubmitTagId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:32:05.463 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:00:32.544 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7e63</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -125,6 +125,7 @@
    var netui_tagIdMap = new Object();
 netui_tagIdMap.NameEnter="NameEnter"
 netui_tagIdMap.NameDelete="NameDelete"
+netui_tagIdMap.FormOne="FormOne"
 
 
 // Build the netui_names table to map the tagId attributes
@@ -132,6 +133,7 @@
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+netui_tagIdNameMap.FormOne="name"
 
 
 // **** This section contains functions typically run as events ****
@@ -213,7 +215,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -247,7 +249,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -263,7 +265,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7e63</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -332,6 +334,7 @@
    var netui_tagIdMap = new Object();
 netui_tagIdMap.NameEnter="NameEnter"
 netui_tagIdMap.NameDelete="NameDelete"
+netui_tagIdMap.FormOne="FormOne"
 
 
 // Build the netui_names table to map the tagId attributes
@@ -339,6 +342,7 @@
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+netui_tagIdNameMap.FormOne="name"
 
 
 // **** This section contains functions typically run as events ****
@@ -424,7 +428,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -458,7 +462,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -474,7 +478,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7e63</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7e63</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -543,6 +547,7 @@
    var netui_tagIdMap = new Object();
 netui_tagIdMap.NameEnter="NameEnter"
 netui_tagIdMap.NameDelete="NameDelete"
+netui_tagIdMap.FormOne="FormOne"
 
 
 // Build the netui_names table to map the tagId attributes
@@ -550,6 +555,7 @@
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.NameDelete="actionOverride:DeleteName"
+netui_tagIdNameMap.FormOne="name"
 
 
 // **** This section contains functions typically run as events ****
@@ -610,7 +616,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:32:06.424 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:00:33.425 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>3</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml
   (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/CtScScopeId.xml
   Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>CtScScopeId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:32:46.431 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:01:14.122 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7de3</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7de3</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -80,7 +80,7 @@
         &lt;/p>
         &lt;div netui:scopeId="scopeOne" >
         &lt;span id="scopeOneSpan" />
-        &lt;form name="bean" id="form" 
action="/coreWeb/coretags/sc/scopeid/post.do" method="post">
+        &lt;form name="bean" id="html.scopeOne.form" 
action="/coreWeb/coretags/sc/scopeid/post.do" method="post">
             &lt;table>
                 &lt;tr valign="top">
                     &lt;td>Text:&lt;/td>
@@ -109,7 +109,7 @@
    var netui_names = new Object();
 netui_names.scopeOne__b1="html.scopeOne.b1"
 netui_names.scopeOne__t1="{actionForm.text1}"
-netui_names.scopeOne__form="form"
+netui_names.scopeOne__form="html.scopeOne.form"
 netui_names.scopeOne__b2="actionOverride:override"
 netui_names.scopeOne__t2="{actionForm.text2}"
 
@@ -120,6 +120,7 @@
    var netui_tagIdMap = new Object();
 netui_tagIdMap.scopeOne__b1="html.scopeOne.b1"
 netui_tagIdMap.scopeOne__t1="html.scopeOne.t1"
+netui_tagIdMap.scopeOne__form="html.scopeOne.form"
 netui_tagIdMap.scopeOne__b2="html.scopeOne.b2"
 netui_tagIdMap.scopeOne__t2="html.scopeOne.t2"
 
@@ -129,6 +130,7 @@
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.scopeOne__t1="{actionForm.text1}"
+netui_tagIdNameMap.scopeOne__form="bean"
 netui_tagIdNameMap.scopeOne__b2="actionOverride:override"
 netui_tagIdNameMap.scopeOne__t2="{actionForm.text2}"
 
@@ -237,7 +239,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:32:47.052 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:01:15.033 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
     (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/DataGridPagerCustomSelect.xml
     Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>DataGridPagerCustomSelect</ses:sessionName>
    <ses:tester>ekoneil</ses:tester>
-   <ses:startDate>05 Jan 2005, 04:27:37.338 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:01:33.359 AM MST</ses:startDate>
    <ses:description>ekoneil</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -218,6 +218,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -263,7 +300,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -289,7 +326,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -301,7 +338,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -463,6 +500,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -508,7 +582,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -534,7 +608,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -546,7 +620,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -708,6 +782,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -753,7 +864,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -779,7 +890,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -791,7 +902,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -953,6 +1064,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -998,7 +1146,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1024,7 +1172,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -1036,7 +1184,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1198,6 +1346,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -1243,7 +1428,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F4B7FE00D647CBB45ECBEA9CC9D2818A</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -1269,7 +1454,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=F4B7FE00D647CBB45ECBEA9CC9D2818A; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -1281,7 +1466,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>10e57a3b:101453177b5:-7db4</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7db4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -1443,6 +1628,43 @@
 
 
 
+<script language="JavaScript" type="text/JavaScript">
+<!--
+
+// map tagId to "real name"
+if (netui_tagIdMap == null)
+   var netui_tagIdMap = new Object();
+netui_tagIdMap.pageForm="pageForm"
+// lookup by tagId to "real id"
+function lookupIdByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdMap[id];
+   else
+      return netui_tagIdMap[scopeId  + "__" + id];
+}
+
+
+// map tagId to "real name"
+if (netui_tagIdNameMap == null)
+   var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.pageForm="pageForm"
+// lookup by tagId to "real name"
+function lookupNameByTagId(id, tag)
+{
+   var scopeId = getScopeId(tag);
+   if (scopeId == "")
+      return netui_tagIdNameMap[id];
+   else
+      return netui_tagIdNameMap[scopeId  + "__" + id];
+}
+
+-->
+</script>
+
+
+
 
 
           </td>
@@ -1471,7 +1693,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 04:27:39.421 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:01:35.462 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>6</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml
       (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapGenScopeId.xml
       Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>IdMapGenScopeId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:33:53.747 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 10:03:29.315 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>49DA30395513DA0529E6405B6D833A1F</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=49DA30395513DA0529E6405B6D833A1F; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7cea</ses:value>
+                  <ses:value>4366b091:1014e1da1c5:-7cea</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -207,7 +207,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:33:54.337 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 10:03:29.926 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml
      (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/IdMapHtmlScopeId.xml
      Fri Jan  7 09:54:23 2005
@@ -2,8 +2,8 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>IdMapHtmlScopeId</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>06 Jan 2005, 01:33:18.070 PM MST</ses:startDate>
-   <ses:description>Verify the behavior of HTML with a scope 
d</ses:description>
+   <ses:startDate>07 Jan 2005, 10:03:29.946 AM MST</ses:startDate>
+   <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
          <ses:testNumber>1</ses:testNumber>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>F7F12544B8469E0280C10A819372B303</ses:value>
+                  <ses:value>49DA30395513DA0529E6405B6D833A1F</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  
<ses:value>JSESSIONID=F7F12544B8469E0280C10A819372B303</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=49DA30395513DA0529E6405B6D833A1F; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -55,6 +55,10 @@
                   <ses:value>300</ses:value>
                </ses:header>
                <ses:header>
+                  <ses:name>testrecorder.playback.testid</ses:name>
+                  <ses:value>4366b091:1014e1da1c5:-7ce8</ses:value>
+               </ses:header>
+               <ses:header>
                   <ses:name>user-agent</ses:name>
                   <ses:value>Mozilla/5.0 (Windows; U; Windows NT 5.1; en-US; 
rv:1.7.5) Gecko/20041107 Firefox/1.0</ses:value>
                </ses:header>
@@ -184,17 +188,6 @@
 // This method will walk the hierarchy from the pass element looking for a 
scopeId.
 // The first scopeId found will be returned or the empty string if a scopeId 
is not found.
 
-function getScopeId(tag)
-{
-   if (tag == null || tag.getAttribute == null)
-      return "";
-   var attrVal = tag.getAttribute("netui:scopeId");
-   if (attrVal != null)
-      return attrVal;
-   return getScopeId(tag.parentNode);
-}
-
-
     var p = document.getElementById("javaOut");
     var s = document.getElementById("scopeOneSpan");
 
@@ -207,8 +200,14 @@
 &lt;/div>
 &lt;/html></ses:responseBody>
          </ses:response>
+         <ses:testResults>
+            <ses:testStatus>fail</ses:testStatus>
+         </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>06 Jan 2005, 01:33:25.441 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 10:03:30.868 AM MST</ses:endDate>
+   <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
+   <ses:passedCount>0</ses:passedCount>
+   <ses:failedCount>1</ses:failedCount>
 </ses:recorderSession>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml    
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/TagIds.xml    
    Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>TagIds</ses:sessionName>
    <ses:tester>Daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:37:57.112 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:06:47.177 AM MST</ses:startDate>
    <ses:description>Daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -40,7 +40,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>cookie2</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7904</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-78f6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -148,6 +148,7 @@
 if (netui_tagIdMap == null)
    var netui_tagIdMap = new Object();
 netui_tagIdMap.submit="submit"
+netui_tagIdMap.form="form"
 netui_tagIdMap.firstName="firstName"
 netui_tagIdMap.select="select"
 netui_tagIdMap.lastName="lastName"
@@ -157,6 +158,7 @@
 // to the real id written into the HTML
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
+netui_tagIdNameMap.form="nameBean"
 netui_tagIdNameMap.firstName="{actionForm.firstName}"
 netui_tagIdNameMap.select="wlw-select_key:{actionForm.type}"
 netui_tagIdNameMap.lastName="{actionForm.lastName}"
@@ -220,7 +222,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:37:58.183 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:06:48.259 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml&r2=124551
==============================================================================
--- incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml  
(original)
+++ incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsid.xml  
Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>jsid</ses:sessionName>
    <ses:tester>daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:34:09.569 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:02:43.767 AM MST</ses:startDate>
    <ses:description>daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7caa</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7ca6</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -116,6 +116,7 @@
    var netui_tagIdMap = new Object();
 netui_tagIdMap.b1="b1"
 netui_tagIdMap.t1="t1"
+netui_tagIdMap.form="form"
 netui_tagIdMap.b2="b2"
 netui_tagIdMap.t2="t2"
 
@@ -125,6 +126,7 @@
 if (netui_tagIdNameMap == null)
    var netui_tagIdNameMap = new Object();
 netui_tagIdNameMap.t1="{actionForm.text1}"
+netui_tagIdNameMap.form="bean"
 netui_tagIdNameMap.b2="actionOverride:override"
 netui_tagIdNameMap.t2="{actionForm.text2}"
 
@@ -207,7 +209,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:34:10.160 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:02:44.808 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Modified: 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml
Url: 
http://svn.apache.org/viewcvs/incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml?view=diff&rev=124551&p1=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml&r1=124550&p2=incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml&r2=124551
==============================================================================
--- 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml
    (original)
+++ 
incubator/beehive/trunk/netui/test/webapps/drt/testRecorder/tests/jsidnohtml.xml
    Fri Jan  7 09:54:23 2005
@@ -2,7 +2,7 @@
 <ses:recorderSession 
xmlns:ses="http://beehive.apache.org/netui/tools/testrecorder/2004/session";>
    <ses:sessionName>jsidnohtml</ses:sessionName>
    <ses:tester>daryl</ses:tester>
-   <ses:startDate>05 Jan 2005, 03:34:10.180 PM MST</ses:startDate>
+   <ses:startDate>07 Jan 2005, 08:02:44.849 AM MST</ses:startDate>
    <ses:description>daryl</ses:description>
    <ses:tests>
       <ses:test>
@@ -18,7 +18,7 @@
             <ses:cookies>
                <ses:cookie>
                   <ses:name>JSESSIONID</ses:name>
-                  <ses:value>56BA56A09B762C1C84636272E60B0973</ses:value>
+                  <ses:value>14592C5C06B4FD45EA5B234F4EE0D385</ses:value>
                </ses:cookie>
             </ses:cookies>
             <ses:headers>
@@ -44,7 +44,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>cookie</ses:name>
-                  <ses:value>$Version=0; 
JSESSIONID=56BA56A09B762C1C84636272E60B0973; $Path=/coreWeb</ses:value>
+                  <ses:value>$Version=0; 
JSESSIONID=14592C5C06B4FD45EA5B234F4EE0D385; $Path=/coreWeb</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>host</ses:name>
@@ -56,7 +56,7 @@
                </ses:header>
                <ses:header>
                   <ses:name>testrecorder.playback.testid</ses:name>
-                  <ses:value>-43783df1:10144ff88e4:-7ca8</ses:value>
+                  <ses:value>-a1bb3f1:1014daed030:-7ca4</ses:value>
                </ses:header>
                <ses:header>
                   <ses:name>user-agent</ses:name>
@@ -218,6 +218,15 @@
 &lt;/script>
 
 
+
+&lt;script language="JavaScript" type="text/JavaScript">
+&lt;!--
+netui_tagIdMap.form="form"
+netui_tagIdNameMap.form="bean"
+-->
+&lt;/script>
+
+
         &lt;hr>
         Post Value: &lt;label>&lt;/label>&lt;br>
         Method: &lt;label>&lt;/label>
@@ -245,7 +254,7 @@
          </ses:testResults>
       </ses:test>
    </ses:tests>
-   <ses:endDate>05 Jan 2005, 03:34:11.111 PM MST</ses:endDate>
+   <ses:endDate>07 Jan 2005, 08:02:45.459 AM MST</ses:endDate>
    <ses:sessionStatus>fail</ses:sessionStatus>
    <ses:testCount>1</ses:testCount>
    <ses:passedCount>0</ses:passedCount>

Reply via email to